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

Added tests for metered.go #6083

Merged
merged 1 commit into from
Jun 3, 2024

Conversation

agautam478
Copy link
Contributor

What changed?
Added tests for the 50% of the methods in metered.go
Will push rest of the tests in the upcoming PR.

Why?
code coverage.

How did you test it?

Potential risks

Release notes

Documentation Changes


assert.NotNil(t, err)
assert.Contains(t, err.Error(), "cadence internal error")
assert.Contains(t, err.Error(), "internal error")
Copy link
Member

Choose a reason for hiding this comment

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

this line is redundant given above line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

noted! removing it now and will include the change in second PR

@agautam478 agautam478 enabled auto-merge (squash) June 3, 2024 20:31
@agautam478 agautam478 merged commit 0667205 into cadence-workflow:master Jun 3, 2024
18 checks passed
@coveralls
Copy link

Pull Request Test Coverage Report for Build 018fdf61-ac8e-4492-9f08-45fe4fa188df

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 17 unchanged lines in 5 files lost coverage.
  • Overall coverage increased (+0.06%) to 69.742%

Files with Coverage Reduction New Missed Lines %
common/task/weighted_round_robin_task_scheduler.go 2 89.05%
common/persistence/sql/sqlplugin/postgres/task.go 2 73.4%
service/matching/tasklist/task_list_manager.go 2 76.09%
service/history/task/transfer_active_task_executor.go 2 72.79%
common/persistence/sql/sqlplugin/postgres/db.go 9 65.0%
Totals Coverage Status
Change from base Build 018fdeeb-1615-4507-ae03-236a4f5abcab: 0.06%
Covered Lines: 103174
Relevant Lines: 147936

💛 - Coveralls

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