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

Add Default Processor Tests for table_items, current_table_items, and block_metadata_transactions #577

Merged
merged 9 commits into from
Nov 1, 2024

Conversation

dermanyang
Copy link
Contributor

@dermanyang dermanyang commented Oct 29, 2024

Purpose

as above

Coverage Improvemenet

Old Coverage Stats:

image

New Coverage Stats:

image

Test Verification

Current Table Items

image image

Table Items

image image

BMT

image image

@dermanyang dermanyang changed the title init default diff tests Add Default Processor Tests for table_items, current_table_items, and block_metadata_transactions Oct 31, 2024
@dermanyang dermanyang marked this pull request as ready for review October 31, 2024 22:34
@dermanyang dermanyang requested review from yuunlimm and rtso October 31, 2024 22:34
// serde_json::to_value(&cti_result)?,
// );

// TODO: revisit we need to find out a way to find correct table metadata
Copy link
Contributor Author

@dermanyang dermanyang Oct 31, 2024

Choose a reason for hiding this comment

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

@yuunlimm do we still need this table metadata? It's not part of the default processor?

Copy link
Contributor

Choose a reason for hiding this comment

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

The create_table_item event, which generates table_metadata for a table_item, is part of the default processor. To test this, we need to identify the correct transaction version containing the create_table_item event, as table_metadata records doesn't have a transaction_version field. For the test case, we should either pull all rows to verify the presence of the expected data since filtering by transaction version isn’t an option for us here

@dermanyang dermanyang merged commit a8f9c59 into main Nov 1, 2024
7 checks passed
@dermanyang dermanyang deleted the sdy/default_proc_tests branch November 1, 2024 21:52
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.

3 participants