Skip to main content

is_allowed

Function is_allowed 

Source
pub fn is_allowed(name: &str) -> bool
Expand description

Whether name is on ct-test’s fixed read-only allowlist for the current platform (CORE plus the OS’s NATIVE utilities).

§Examples

use coding_tools::allowlist::is_allowed;

assert!(is_allowed("ct-search"));  // a suite read-only tool, on every platform
assert!(!is_allowed("rm"));        // not read-only, never runnable
assert!(!is_allowed("sh"));        // no shell, ever