aptos-labs / aptos-indexer-processors

Set of core processors that index data on the Aptos blockchain
https://aptos.dev/indexer/indexer-landing
60 stars 72 forks source link

Create token v2 tests #582

Closed rtso closed 1 month ago

rtso commented 1 month ago

Description

Add tests for token v2 processor Test coverage increased: Before: Screenshot 2024-10-31 at 8 47 41 PM After: Screenshot 2024-10-31 at 8 56 08 PM

To get even higher coverage we can add some tests for token v1s

Testing

test_token_v2_burn_event_v1

Screenshot 2024-10-31 at 5 24 54 PM

Screenshot 2024-10-31 at 8 05 54 PM

test_token_v2_burn_event_v2

Screenshot 2024-10-31 at 8 09 45 PM

test_token_v2_concurrent_aptos_mint

Screenshot 2024-10-31 at 8 27 33 PM Screenshot 2024-10-31 at 8 25 05 PM Screenshot 2024-10-31 at 8 20 33 PM Screenshot 2024-10-31 at 8 11 32 PM

test_token_v2_fixed_supply

Screenshot 2024-10-31 at 8 36 02 PM Screenshot 2024-10-31 at 8 34 57 PM

(token ownership amount in BQ is incorrect)

Screenshot 2024-10-31 at 8 33 58 PM Screenshot 2024-10-31 at 8 32 32 PM

test_token_v2_mint_and_transfer_event_v1

Number of token activities matches and data is correct

Screenshot 2024-10-31 at 8 39 45 PM

test_token_v2_mutation_event

Screenshot 2024-10-31 at 8 41 07 PM

test_token_v2_unlimited_supply

Screenshot 2024-10-31 at 8 42 21 PM
rtso commented 1 month ago

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @rtso and the rest of your teammates on Graphite Graphite