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

test: add tests for new DEX #167

Merged
merged 22 commits into from
Jul 12, 2023
Merged

test: add tests for new DEX #167

merged 22 commits into from
Jul 12, 2023

Conversation

kingcre
Copy link
Contributor

@kingcre kingcre commented Jul 6, 2023

Description

The purpose of this PR is to increase test coverage.

Tasks

  • x/amm/keeper
  • x/amm/types
  • x/exchange/keeper
  • x/exchange/types
  • x/amm invariant checks
  • x/exchange invariant checks

@kingcre kingcre self-assigned this Jul 6, 2023
@kingcre kingcre marked this pull request as ready for review July 11, 2023 17:18
@crypin
Copy link
Member

crypin commented Jul 12, 2023

this failed lint part If you put sanity check because there is no possibility of this part occurring, why don't you panic it so that you can check the occurrence with simulation, fuzzing, etc. before going to production?

x/amm/keeper/farming.go Outdated Show resolved Hide resolved
x/amm/keeper/farming.go Outdated Show resolved Hide resolved
@kingcre
Copy link
Contributor Author

kingcre commented Jul 12, 2023

this failed lint part If you put sanity check because there is no possibility of this part occurring, why don't you panic it so that you can check the occurrence with simulation, fuzzing, etc. before going to production?

This is being discussed separately. Another PR will resolve this issue later.

@crypin crypin self-requested a review July 12, 2023 04:35
@kingcre kingcre merged commit 1b395db into amm-module Jul 12, 2023
16 of 17 checks passed
@kingcre kingcre deleted the new-dex-tests branch July 12, 2023 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants