Skip to content

Commit

Permalink
fix: assert size of metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank-III committed Dec 6, 2024
1 parent f57b743 commit 9e56713
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,16 +144,15 @@ mod tests {
use std::mem::size_of;

use super::*;

/// This is not a real test case.
///
/// We assert our public structs here to make sure we don't introduce
/// unexpected struct/enum size change.
#[test]
fn assert_size() {
assert_eq!(32, size_of::<Operator>());
assert_eq!(296, size_of::<Entry>());
assert_eq!(272, size_of::<Metadata>());
assert_eq!(320, size_of::<Entry>());
assert_eq!(296, size_of::<Metadata>());
assert_eq!(1, size_of::<EntryMode>());
assert_eq!(24, size_of::<Scheme>());
}
Expand Down

0 comments on commit 9e56713

Please sign in to comment.