MCPcopy Create free account
hub / github.com/Freaky/Compactor / test_config

Function test_config

src/config.rs:129–138  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

127
128#[test]
129fn test_config() {
130 let s = Config::default();
131
132 assert!(s.globset().is_ok());
133 let gs = s.globset().unwrap();
134
135 assert!(gs.is_match("C:\\foo\\bar\\hmm.rar"));
136 assert!(gs.is_match("C:\\Windows\\System32\\floop\\bla.txt"));
137 assert!(gs.is_match("C:\\x.lz4"));
138}

Callers

nothing calls this directly

Calls 1

globsetMethod · 0.80

Tested by

no test coverage detected