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

Adding more tests to shard/context.go #6052

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

dkrotx
Copy link
Member

@dkrotx dkrotx commented May 23, 2024

Tests for couple of more functions in context.go

code-coverage

How did you test it?

Potential risks

Release notes

Documentation Changes

Copy link

codecov bot commented May 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.54%. Comparing base (fb4bfce) to head (2d60232).
Report is 1 commits behind head on master.

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 fb4bfce...2d60232. Read the comment docs.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 018fa61a-80af-43aa-bd2e-7170bb094d50

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 141 unchanged lines in 13 files lost coverage.
  • Overall coverage decreased (-0.04%) to 69.315%

Files with Coverage Reduction New Missed Lines %
service/history/task/transfer_standby_task_executor.go 2 87.65%
service/matching/tasklist/db.go 2 73.23%
service/matching/tasklist/task_list_manager.go 2 76.09%
service/frontend/api/handler.go 2 62.2%
service/history/replication/task_processor.go 2 81.25%
service/matching/tasklist/matcher.go 2 88.66%
common/log/tag/tags.go 3 50.46%
common/archiver/filestore/historyArchiver.go 4 80.95%
common/persistence/nosql/nosql_task_store.go 5 63.97%
service/frontend/wrappers/metered/metered.go 9 63.18%
Totals Coverage Status
Change from base Build 018fa5a0-da9b-4f76-9263-3511c2f681f9: -0.04%
Covered Lines: 102126
Relevant Lines: 147336

💛 - Coveralls

Copy link
Member

@jakobht jakobht left a comment

Choose a reason for hiding this comment

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

Added a small comment


resp, err := s.context.CreateWorkflowExecution(ctx, request)
s.NoError(err)
s.NotNil(resp)
Copy link
Member

Choose a reason for hiding this comment

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

Would it be possible to check something more than just not nil?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ouch. Completely missed your question.
Unfortunately, didn't find any meaningful return value there. resp' content is not really having anything related to test. It's more to check mocks.

@dkrotx dkrotx merged commit 61fdb4a into cadence-workflow:master Jun 4, 2024
20 checks passed
timl3136 pushed a commit to timl3136/cadence that referenced this pull request Jun 4, 2024
timl3136 pushed a commit to timl3136/cadence that referenced this pull request Jun 4, 2024
dkrotx added a commit to dkrotx/cadence that referenced this pull request Jun 5, 2024
timl3136 pushed a commit to timl3136/cadence that referenced this pull request Jun 6, 2024
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.

3 participants