Skip to content

Comments

feat: improve savings_goals test coverage and fix contract compilation#111

Open
codeZe-us wants to merge 2 commits intoRemitwise-Org:mainfrom
codeZe-us:main
Open

feat: improve savings_goals test coverage and fix contract compilation#111
codeZe-us wants to merge 2 commits intoRemitwise-Org:mainfrom
codeZe-us:main

Conversation

@codeZe-us
Copy link

@codeZe-us codeZe-us commented Feb 19, 2026

This PR implements test coverage for the withdraw_from_goal function and resolves several syntax, ownership, and redundant code issues in the savings_goals contract.


Changes

Added 7 new test cases for withdraw_from_goal covering:

  • ✅ Success scenarios
  • ✅ Insufficient balance
  • ✅ Locked goals
  • ✅ Unauthorized callers
  • ✅ Zero amounts
  • ✅ Nonexistent goals

Checklist

  • Tests added / updated
  • All existing tests pass
  • No new compiler warnings

closes #63

Screenshot 2026-02-19 222138

@codeZe-us
Copy link
Author

@Baskarayelu please review

@Baskarayelu
Copy link
Contributor

@codeZe-us Please fix the pipeline

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.

Add Tests for Savings Goals withdraw_from_goal

2 participants