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 more tests to concrete-execution-exists invariant #6440

Merged

Conversation

taylanisikdemir
Copy link
Contributor

What changed?
Added tests for Check() and Fix() methods of concrete execution exists check invariant.

Why?
Improve coverage.

Copy link

codecov bot commented Oct 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.65%. Comparing base (cd6e4f3) to head (1fe7284).
Report is 5 commits behind head on master.

Additional details and impacted files
Files with missing lines Coverage Δ
...onciliation/invariant/concrete_execution_exists.go 85.09% <100.00%> (+47.43%) ⬆️

... and 6 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 cd6e4f3...1fe7284. Read the comment docs.

t.Run(tc.desc, func(t *testing.T) {
ctrl := gomock.NewController(t)
mockDomainCache := cache.NewMockDomainCache(ctrl)
execManager := &mocks.ExecutionManager{}
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: it might be in the next diff, but could we switch to the mockgen generation of mocks?
Or use --with-expecter on mockery generation for better testability and consistency.

@taylanisikdemir taylanisikdemir merged commit 400f0a0 into uber:master Oct 30, 2024
20 checks passed
@taylanisikdemir taylanisikdemir deleted the taylan/concrete_exec_tests branch October 30, 2024 15:21
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.

2 participants