Skip to content

test(token): add unit tests for token package#1481

Closed
sid200727 wants to merge 1 commit intohyperledger-labs:mainfrom
sid200727:test/token-package-unit-tests-v2
Closed

test(token): add unit tests for token package#1481
sid200727 wants to merge 1 commit intohyperledger-labs:mainfrom
sid200727:test/token-package-unit-tests-v2

Conversation

@sid200727
Copy link
Copy Markdown
Contributor

@sid200727 sid200727 commented Apr 6, 2026

Adds unit tests for token/token/token.go covering:

  • ID.Equal and ID.String
  • LedgerToken.Equal
  • UnspentToken.String
  • UnspentTokens: Count, ByType, Sum, At
  • IssuedTokens: Count, ByType, Sum

Part of #1348

Adds unit tests for token/token/token.go covering:
- ID.Equal and ID.String
- LedgerToken.Equal
- UnspentToken.String
- UnspentTokens: Count, ByType, Sum, At
- IssuedTokens: Count, ByType, Sum

Part of hyperledger-labs#1349

Signed-off-by: Siddhi Khandelwal <siddhi.200727@gmail.com>
@AkramBitar
Copy link
Copy Markdown
Contributor

Hello @sid200727
Thanks a lot for your help on this one. I already noticed that someone is working on this as well under:
#1478

@sid200727
Copy link
Copy Markdown
Contributor Author

Thanks for the heads up @AkramBitar! Closing in favour of #1478 which covers the same package. Happy to contribute to other open issues in the test epic.

@sid200727 sid200727 closed this Apr 6, 2026
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