lib: move test code to submodule

This commit is contained in:
Matt Bilker
2022-05-08 04:48:23 +00:00
parent 87339f96b5
commit 2628d4e160

View File

@@ -557,8 +557,15 @@ fn apply_profile_override(
true true
} }
#[test] #[cfg(test)]
fn test_size() { mod test {
assert_eq!(mem::size_of::<VgpuStart>(), 0x420); use std::mem;
assert_eq!(mem::size_of::<VgpuConfig>(), 0x730);
use super::{VgpuConfig, VgpuStart};
#[test]
fn test_size() {
assert_eq!(mem::size_of::<VgpuStart>(), 0x420);
assert_eq!(mem::size_of::<VgpuConfig>(), 0x730);
}
} }