INNER CODE UNIT · Rust

policy_disabled_default_false

ouch-org/ouch · src/sandbox/mod.rs:149

    fn policy_disabled_default_false() {
        let policy = SandboxPolicy::new();
        assert!(!policy.disabled);
    }

    #[test]
    fn policy_set_disabled() {
        let mut policy = SandboxPolicy::new();
        policy.set_disabled(true);
        assert!(policy.disabled);
    }

    #[test]
    fn apply_returns_false_when_disabled() {
        let mut policy = SandboxPolicy::new();
        policy.set_disabled(true);
        assert!(!policy.apply());
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…