Test the size of every struct defined here.
This commit is contained in:
parent
9cb4f00341
commit
40aedcf184
43 changed files with 295 additions and 0 deletions
|
|
@ -234,6 +234,15 @@ mod tests {
|
|||
use std::str::FromStr;
|
||||
use compare_elements::NamespaceAwareCompare;
|
||||
|
||||
#[test]
|
||||
fn test_size() {
|
||||
assert_size!(MessageType, 1);
|
||||
assert_size!(Body, 24);
|
||||
assert_size!(Subject, 24);
|
||||
assert_size!(Thread, 24);
|
||||
assert_size!(Message, 272);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_simple() {
|
||||
#[cfg(not(feature = "component"))]
|
||||
|
|
|
|||
Loading…
Reference in a new issue