allow-report 0.1.6

Report and receipt rendering for cargo-allow source exception scans.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use super::*;
use std::path::Path;

#[test]
fn source_tree_path_text_strips_windows_verbatim_prefix() {
    assert_eq!(
        source_tree_path_text(Path::new(r"\\?\H:\Code\Rust\cargo-allow")),
        "H:/Code/Rust/cargo-allow"
    );
    assert_eq!(
        source_tree_path_text(Path::new(r"\\?\UNC\server\share\repo")),
        "//server/share/repo"
    );
}