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
|
|
@ -289,6 +289,13 @@ impl From<StanzaError> for Element {
|
|||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn test_size() {
|
||||
assert_size!(ErrorType, 1);
|
||||
assert_size!(DefinedCondition, 1);
|
||||
assert_size!(StanzaError, 208);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_simple() {
|
||||
#[cfg(not(feature = "component"))]
|
||||
|
|
|
|||
Loading…
Reference in a new issue