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
}
#[test]
fn test_size() {
assert_eq!(mem::size_of::<VgpuStart>(), 0x420);
assert_eq!(mem::size_of::<VgpuConfig>(), 0x730);
#[cfg(test)]
mod test {
use std::mem;
use super::{VgpuConfig, VgpuStart};
#[test]
fn test_size() {
assert_eq!(mem::size_of::<VgpuStart>(), 0x420);
assert_eq!(mem::size_of::<VgpuConfig>(), 0x730);
}
}