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

[PVM] Added unit tests for addressStateTx, claimTx, depositTx #63

Merged
merged 1 commit into from
Apr 10, 2023

Conversation

knikos
Copy link
Member

@knikos knikos commented Apr 7, 2023

Why this should be merged

New camino logic has been added without adequate test coverage. To improve/ensure quality, further testing is essential.
Important: The PR also contains some fixes to discrepancies found in the fromBuffer/toBuffer logic in the following files:

  • src/apis/platformvm/claimtx.ts
  • src/apis/platformvm/depositTx.ts

How this works

It introduces new unit tests for camino logic with little to no test coverage.
Note: The field source is excluded from comparison in 'serialize' test cases, as it's not included in fromBuffer/toBuffer logic.

How this was tested

See newly introduced unit tests.

@knikos knikos force-pushed the feature/various-tx-unit-tests branch from 05577f8 to 1d57b83 Compare April 7, 2023 14:52
@knikos knikos force-pushed the feature/various-tx-unit-tests branch from 1d57b83 to b264b12 Compare April 10, 2023 06:50
@knikos knikos marked this pull request as ready for review April 10, 2023 06:50
@knikos knikos requested review from c4t-ag and peak3d April 10, 2023 06:50
Copy link

@c4t-ag c4t-ag left a comment

Choose a reason for hiding this comment

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

Wonderful!

@knikos knikos merged commit 8bb9394 into dev Apr 10, 2023
@knikos knikos deleted the feature/various-tx-unit-tests branch April 10, 2023 07:27
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