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

Function test_disabled

crates/opencode-permission/src/ruleset.rs:333–345  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

331
332 #[test]
333 fn test_disabled() {
334 let ruleset = vec![PermissionRule {
335 permission: "bash".to_string(),
336 pattern: "*".to_string(),
337 action: PermissionAction::Deny,
338 }];
339
340 let tools = vec!["bash".to_string(), "read".to_string()];
341 let disabled_tools = disabled(&tools, &ruleset);
342
343 assert!(disabled_tools.contains("bash"));
344 assert!(!disabled_tools.contains("read"));
345 }
346}

Callers

nothing calls this directly

Calls 1

disabledFunction · 0.85

Tested by

no test coverage detected