mirror of
https://github.com/mbilker/vgpu_unlock-rs.git
synced 2026-06-17 19:47:44 +02:00
lib: move test code to submodule
This commit is contained in:
11
src/lib.rs
11
src/lib.rs
@@ -557,8 +557,15 @@ fn apply_profile_override(
|
|||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[cfg(test)]
|
||||||
fn test_size() {
|
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::<VgpuStart>(), 0x420);
|
||||||
assert_eq!(mem::size_of::<VgpuConfig>(), 0x730);
|
assert_eq!(mem::size_of::<VgpuConfig>(), 0x730);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user