Skip to content

Commit ab55b37

Browse files
committed
Size check
1 parent b9810a9 commit ab55b37

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/size.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
use sea_query::Value;
2+
3+
#[test]
4+
fn value_size() {
5+
let max = 40;
6+
if size_of::<Value>() > max {
7+
panic!("the size of Value shouldn't be greater than {max} bytes");
8+
}
9+
}

0 commit comments

Comments
 (0)