feat: add unit test

! to be tested in a QEMU/KVM virtual machine, NOT bare metal !
This commit is contained in:
Xorycode 2024-04-13 15:26:52 +03:00
parent 20decab8a4
commit 51b9f1cbe9

View file

@ -57,3 +57,13 @@ pub fn handle_client() {
disk.write_all(&buffer).unwrap();
}
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_disk_locator {
assert_eq!(get_block_devices(), vec!["vda".to_string()])
}
}