agcodex-execpolicy 0.1.0

Sandboxing and execution policy enforcement
Documentation
1
2
3
4
5
6
7
8
9
use agcodex_execpolicy::PositiveExampleFailedCheck;
use agcodex_execpolicy::get_default_policy;

#[test]
fn verify_everything_in_good_list_is_allowed() {
    let policy = get_default_policy().expect("failed to load default policy");
    let violations = policy.check_each_good_list_individually();
    assert_eq!(Vec::<PositiveExampleFailedCheck>::new(), violations);
}