Skip to content

add tests for init market, update config, deposit and withdraw#9

Merged
AvhiMaz merged 3 commits into
masterfrom
feat/tests
Mar 16, 2026
Merged

add tests for init market, update config, deposit and withdraw#9
AvhiMaz merged 3 commits into
masterfrom
feat/tests

Conversation

@xydv
Copy link
Copy Markdown
Collaborator

@xydv xydv commented Mar 16, 2026

summary

this mr adds tests for all the available instructions.

@AvhiMaz AvhiMaz self-requested a review March 16, 2026 15:44
@AvhiMaz AvhiMaz added ci Trigger CI/CD and removed ci Trigger CI/CD labels Mar 16, 2026
Copy link
Copy Markdown
Collaborator

@AvhiMaz AvhiMaz left a comment

Choose a reason for hiding this comment

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

nits:

  • can you also add the tests for withdraw instruction?
  • also few changes required
  • can you also add negative tests? like non-admin can't call update_config or deposit

also the ci fails because of workflow, pushed some changes here a403e24

need to rebase it again.

Comment thread src/lib.rs
Comment thread src/tests/update_config.rs
@AvhiMaz AvhiMaz added ci Trigger CI/CD and removed ci Trigger CI/CD labels Mar 16, 2026
@AvhiMaz AvhiMaz changed the title add tests for init market, update config and deposit add tests for init market, update config, deposit and withdraw Mar 16, 2026
@xydv
Copy link
Copy Markdown
Collaborator Author

xydv commented Mar 16, 2026

will add the withdraw, negative test cases and the changes.

@xydv xydv added ci Trigger CI/CD and removed ci Trigger CI/CD labels Mar 16, 2026
@xydv xydv added ci Trigger CI/CD and removed ci Trigger CI/CD labels Mar 16, 2026
@xydv xydv requested a review from AvhiMaz March 16, 2026 16:54
@AvhiMaz AvhiMaz merged commit 1313321 into master Mar 16, 2026
4 checks passed
@AvhiMaz AvhiMaz deleted the feat/tests branch March 16, 2026 16:56
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