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

update mocks to assert multiple calls to mock functions #116

Merged

Conversation

bhamail
Copy link
Contributor

@bhamail bhamail commented Sep 18, 2024

This PR updates our mocks to support multiple calls to mocked functions and validating each call individually. The idea is to allow optional assertions on the mock calls. If you do not find this too disgusting, feel free to merge it into PR #114.

My intent is to allow the mocks to better assert unit test conditions going forward.

(I'm totally fine with replacing all of this with a better mock library in the future.)

@bhamail bhamail requested a review from madpah September 18, 2024 18:39
@bhamail bhamail changed the title update mocks to support multiple calls to mock functions update mocks to assert multiple calls to mock functions Sep 18, 2024
Copy link

sonarcloud bot commented Sep 18, 2024

@madpah
Copy link
Contributor

madpah commented Sep 19, 2024

B-E-A-utiful. LGTM

@madpah madpah merged commit 6f3a6d6 into fix/update-repo-status-post-commit-quality-checks Sep 19, 2024
4 checks passed
@madpah madpah deleted the fix/assert_via_mocks branch September 19, 2024 06:36
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