vm-curator 1.1.0

A TUI application to manage QEMU VM library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::*;
use std::path::PathBuf;

#[test]
fn test_is_btrfs_nonexistent() {
    // Should not panic on non-existent path; the bool value depends on the
    // root filesystem type, so we only assert that the call returns cleanly.
    let _result = is_btrfs(&PathBuf::from("/nonexistent/path/12345"));
}

#[test]
fn test_is_btrfs_root() {
    // Should work on root
    let _result = is_btrfs(&PathBuf::from("/"));
    // Just verify it doesn't panic
}