Skip to content

Commit a43a01a

Browse files
committed
Add more size_of tests
1 parent 68f064c commit a43a01a

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/size_of_tests.rs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,18 @@ macro_rules! size_of_test {
3131
}
3232
}
3333

34-
// These assume 64-bit
34+
// Some of these assume 64-bit
3535
size_of_test!(token, Token, 32);
3636
size_of_test!(std_cow_str, Cow<'static, str>, 32);
3737
size_of_test!(cow_rc_str, CowRcStr, 16);
38+
39+
size_of_test!(tokenizer, ::tokenizer::Tokenizer, 48);
40+
size_of_test!(parser_input, ::parser::ParserInput, 104);
41+
size_of_test!(parser, ::parser::Parser, 16);
42+
size_of_test!(tokenizer_source_position, ::tokenizer::SourcePosition, 8);
43+
size_of_test!(source_position, ::parser::SourcePosition, 16);
44+
size_of_test!(source_location, ::SourceLocation, 8);
45+
46+
size_of_test!(basic_parse_error, ::BasicParseError, 40);
47+
size_of_test!(parse_error_lower_bound, ::ParseError<()>, 48);
48+
size_of_test!(precise_parse_error_lower_bound, ::PreciseParseError<()>, 80);

0 commit comments

Comments
 (0)