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

Method covered

crates/opencode-permission/src/engine.rs:79–83  ·  view source on GitHub ↗
(keys: &[String], approved: &HashMap<String, bool>)

Source from the content-addressed store, hash-verified

77 }
78
79 fn covered(keys: &[String], approved: &HashMap<String, bool>) -> bool {
80 let patterns: Vec<&String> = approved.keys().collect();
81 keys.iter()
82 .all(|k| patterns.iter().any(|p| wildcard_match(k, p)))
83 }
84
85 pub fn is_approved(
86 &self,

Callers

nothing calls this directly

Calls 2

wildcard_matchFunction · 0.70
allMethod · 0.45

Tested by

no test coverage detected