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

Improve tests coverage #317

Merged
merged 1 commit into from
Aug 16, 2023
Merged

Improve tests coverage #317

merged 1 commit into from
Aug 16, 2023

Conversation

makcandrov
Copy link
Contributor

@makcandrov makcandrov commented Aug 16, 2023

Fixes:

  • 2 missing tests (testAccrueInterestsMarketNotCreated & testCreateMarketAlreadyCreated)
  • 1 erroneous test (testSupplyCollateralMarketNotCreated)
  • (not related to the coverage) Removed some unnecessary expectEmit (see Refactor testing suite #218 (comment))

There is still not 100% coverage. The tool thinks that the callbacks are not tested, even though they are. If anyone has an explanation, I'm all ears.

forge coverage:
image

forge coverage --report debug:
image

@MerlinEgalite MerlinEgalite merged commit 285ad03 into main Aug 16, 2023
4 checks passed
@MerlinEgalite MerlinEgalite deleted the fix/morpho-coverage branch August 16, 2023 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants