MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / test_wildcard_match

Function test_wildcard_match

crates/opencode-permission/src/engine.rs:282–288  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

280
281 #[test]
282 fn test_wildcard_match() {
283 assert!(wildcard_match("foo", "*"));
284 assert!(wildcard_match("foo/bar", "foo/*"));
285 assert!(wildcard_match("foo/bar/baz", "*/baz"));
286 assert!(wildcard_match("foo/bar/baz", "*bar*"));
287 assert!(!wildcard_match("foo", "bar"));
288 }
289}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected