mirror of
https://github.com/mbilker/vgpu_unlock-rs.git
synced 2026-01-17 20:07:00 +01:00
lib: move test code to submodule
This commit is contained in:
15
src/lib.rs
15
src/lib.rs
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user