use destructive_command_guard::{
config::Config, evaluator::evaluate_command, load_default_allowlists,
};
#[test]
fn test_shell_comment_false_positive() {
let config = Config::default();
let compiled_overrides = config.overrides.compile();
let allowlists = load_default_allowlists();
let keywords = &["rm", "git"];
let cmd = "ls -la # rm -rf /";
let result = evaluate_command(cmd, &config, keywords, &compiled_overrides, &allowlists);
assert!(
result.is_allowed(),
"Command with destructive comment should be allowed, but was: {:?}",
result.decision
);
}