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

Simulator coverage for get_account_{transfers,balances} #2004

Merged
merged 5 commits into from
Jun 21, 2024

Conversation

batiati
Copy link
Contributor

@batiati batiati commented Jun 12, 2024

Implemented assertions based on the expected number of results in variations of filters such as debits | credits and timestamp range.

It's not able to fine-check intermediate states such as the expected account_balance between transfers, although the path covered is good enough to check the assertions already in place along the code.

src/state_machine/workload.zig Outdated Show resolved Hide resolved
src/state_machine/workload.zig Outdated Show resolved Hide resolved
src/state_machine/workload.zig Outdated Show resolved Hide resolved
src/state_machine/workload.zig Outdated Show resolved Hide resolved
src/state_machine/workload.zig Outdated Show resolved Hide resolved
src/state_machine/workload.zig Outdated Show resolved Hide resolved
src/state_machine/workload.zig Outdated Show resolved Hide resolved
Copy link
Member

@matklad matklad left a comment

Choose a reason for hiding this comment

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

Realized that I don't understand one big picture aspect of this: in validate_account_filter_result_count, we compare the number of transfers the account has at a given moment with the amount of results. But why than works? More transfers could get created in the meantime, no?

src/state_machine/workload.zig Outdated Show resolved Hide resolved
src/state_machine/workload.zig Outdated Show resolved Hide resolved
src/testing/storage.zig Outdated Show resolved Hide resolved
src/state_machine/workload.zig Outdated Show resolved Hide resolved
src/state_machine/workload.zig Outdated Show resolved Hide resolved
@matklad
Copy link
Member

matklad commented Jun 18, 2024

removed vopr label until this is rebased to 0.13 :)

Implemented assertions based on the expected number of results in variations of filters such as `debits | credits` and timestamp range.

It's not able to fine-check intermediate states such as the expected `account_balance` between transfers, although the path covered is good enough to check the assertions already in place along the code.
@matklad

This comment was marked as resolved.

@matklad

This comment was marked as resolved.

@batiati batiati added this pull request to the merge queue Jun 21, 2024
Merged via the queue into main with commit 8b54fa4 Jun 21, 2024
25 checks passed
@batiati batiati deleted the batiati-simulator branch June 21, 2024 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants