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

chore: add test_segment_config_backwards #13394

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

chore: add test_segment_config_backwards #13394

wants to merge 1 commit into from

Conversation

joshieDo
Copy link
Collaborator

@joshieDo joshieDo commented Dec 13, 2024

If the order of the variants is changed, it will result in a different deserialization result.

Adds the test to ensure we don't change it without any failures.

pub enum StaticFileSegment {
#[strum(serialize = "headers")]
/// Static File segment responsible for the `CanonicalHeaders`, `Headers`,
/// `HeaderTerminalDifficulties` tables.
Headers,
#[strum(serialize = "transactions")]
/// Static File segment responsible for the `Transactions` table.
Transactions,
#[strum(serialize = "receipts")]
/// Static File segment responsible for the `Receipts` table.
Receipts,
}

@joshieDo joshieDo added C-test A change that impacts how or what we test A-static-files Related to static files labels Dec 13, 2024
@joshieDo joshieDo requested review from mattsse and klkvr December 13, 2024 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-static-files Related to static files C-test A change that impacts how or what we test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant