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

Add test coverage for service/history/engine/engineimpl/reset_workflow_execution.go #6002

Merged
merged 1 commit into from
May 9, 2024

Conversation

natemort
Copy link
Contributor

@natemort natemort commented May 9, 2024

What changed?

  • Adding new tests

Why?

  • Increasing test coverage

How did you test it?

  • Unit tests

Potential risks

Release notes

Documentation Changes

).Return(nil).Times(1)
},
},
// Can't assert on the result because the runID is random
Copy link
Contributor

Choose a reason for hiding this comment

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

we could make RunIDGenerator a separate interface and mock it but doesn't worth it I guess.

Copy link
Contributor

Choose a reason for hiding this comment

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

as a followup, it'd be nice to pull sources of entropy and side-effects into embedable inputs like the mockabe clock

Copy link

codecov bot commented May 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 66.22%. Comparing base (2fef3c3) to head (37985aa).

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 2fef3c3...37985aa. Read the comment docs.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 018f5f84-e0c8-4b97-9a1c-edf2e76a0bfa

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 25 unchanged lines in 7 files lost coverage.
  • Overall coverage increased (+0.05%) to 68.862%

Files with Coverage Reduction New Missed Lines %
common/task/weighted_round_robin_task_scheduler.go 1 89.05%
service/history/execution/mutable_state_util.go 2 78.52%
common/membership/hashring.go 2 84.69%
common/task/fifo_task_scheduler.go 3 84.54%
common/persistence/statsComputer.go 3 96.07%
service/history/task/fetcher.go 6 85.05%
service/history/task/cross_cluster_task_processor.go 8 80.79%
Totals Coverage Status
Change from base Build 018f5e8f-a247-406e-9920-f997ba145d18: 0.05%
Covered Lines: 101162
Relevant Lines: 146906

💛 - Coveralls

@agautam478 agautam478 merged commit b18d456 into uber:master May 9, 2024
20 checks passed
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.

5 participants