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

refactor(tests): Extract tests related logic into raw::tests for reuse #3420

Merged
merged 2 commits into from
Oct 30, 2023

Conversation

Xuanwo
Copy link
Member

@Xuanwo Xuanwo commented Oct 30, 2023

This extract tests related logci into raw::tests for better reusing. raw::tests is hiden under tests features that users won't touch that unexpected.

This change makes it much easier to reproduce our fuzzing tests:

pub async fn test_fuzz_issue_2717(op: Operator) -> Result<()> {
    let actions = [ReadAction::Seek(SeekFrom::End(-2))];

    test_fuzz_read(op, 2, .., &actions).await
}

@Xuanwo Xuanwo marked this pull request as ready for review October 30, 2023 06:20
@Xuanwo Xuanwo requested a review from PsiACE as a code owner October 30, 2023 06:20
Copy link
Member

@suyanhanx suyanhanx left a comment

Choose a reason for hiding this comment

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

Thanks!

@Xuanwo Xuanwo merged commit 00fdfe0 into main Oct 30, 2023
@Xuanwo Xuanwo deleted the fuzzer-checker branch October 30, 2023 06:38
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.

2 participants