Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addition of test for TestHandler_UpdateAsyncWorkflowConfiguration #5892

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

abhishekj720
Copy link
Contributor

What changed?
Test for UpdateAsyncWorkflowConfiguraton

Why?
As part of code coverage week

How did you test it?
Unit test

Potential risks
No risk

@coveralls
Copy link

coveralls commented Apr 8, 2024

Pull Request Test Coverage Report for Build 018ec380-10d8-45b7-aa82-c2cd1d358cd6

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 47 unchanged lines in 14 files lost coverage.
  • Overall coverage increased (+0.04%) to 67.388%

Files with Coverage Reduction New Missed Lines %
common/persistence/sql/sqlplugin/postgres/task.go 2 73.4%
common/task/parallel_task_processor.go 2 93.06%
common/persistence/sql/sqlplugin/postgres/db.go 2 80.0%
common/task/fifo_task_scheduler.go 2 85.57%
service/matching/db.go 2 73.23%
service/history/task/transfer_active_task_executor.go 2 72.7%
common/membership/hashring.go 2 84.69%
common/log/tag/tags.go 3 50.74%
service/history/queue/timer_gate.go 3 95.83%
service/matching/taskListManager.go 3 79.7%
Totals Coverage Status
Change from base Build 018ec2d0-2d55-4385-9005-feae08321986: 0.04%
Covered Lines: 98231
Relevant Lines: 145769

💛 - Coveralls

Copy link

codecov bot commented Apr 8, 2024

Codecov Report

Merging #5892 (c8c5045) into master (65c4017) will increase coverage by 0.01%.
The diff coverage is n/a.

Additional details and impacted files

see 8 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 65c4017...c8c5045. Read the comment docs.

expectedErr error
}{
{
name: "fail to get metadata",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a real problem, but just a tip: Genuinely starting with the success case is a bit easier because you typically have to construct the most mocks and return results. And thereafter all the error cases are typically just subsets of the first entry. It just makes copying + pasting easier

LastUpdatedTime: time.Now().Add(-24 * time.Hour).UnixNano(),
}, nil)

mockDomainManager.EXPECT().UpdateDomain(gomock.Any(), gomock.Any()).Return(nil)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry to be annoying, but if the test is to really have any serious value at all the updateDomain request should be specified here. Just doing gomock.Any() doesn't really tell you much if anything's broken

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants