MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / test_simple_glob_match

Function test_simple_glob_match

crates/openshell-bootstrap/src/build.rs:581–588  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

579
580 #[test]
581 fn test_simple_glob_match() {
582 assert!(simple_glob_match("*.txt", "hello.txt"));
583 assert!(!simple_glob_match("*.txt", "hello.rs"));
584 assert!(simple_glob_match("test?", "test1"));
585 assert!(!simple_glob_match("test?", "test12"));
586 assert!(simple_glob_match("*", "anything"));
587 assert!(simple_glob_match("foo*bar", "fooXYZbar"));
588 }
589
590 #[test]
591 fn test_glob_match_double_star() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected