Skip to content

forge-governor — add test verifying get_vote_tally() returns correct abstain_votes field #340

@Austinaminu2

Description

@Austinaminu2

Summary

VoteTally now includes abstain_votes but no test explicitly verifies this field is populated correctly after abstain votes are cast. The existing tally tests likely pre-date the abstain feature.

Tasks

  • Create a proposal
  • Cast 60 For votes, 30 Against votes, 10 Abstain votes (from different voters)
  • Call get_vote_tally() and assert:
    • yes_votes == 60
    • no_votes == 30
    • abstain_votes == 10
    • total_votes == 100
  • Verify get_vote_tally() on a proposal with no votes returns all zeros
  • Verify get_vote_tally() on a non-existent proposal returns ProposalNotFound

Labels: testing, forge-governor

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave program

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions