use super::*;
#[test]
fn active_hook_registrations_always_include_core_hook_points() {
let points = active_hook_registrations(0, false);
assert_eq!(
points,
vec![
"before_tool_call".to_string(),
"on_control_plane_prompt".to_string(),
"before_trigger_action".to_string(),
]
);
}
#[test]
fn active_hook_registrations_adds_after_tool_call_when_lsp_is_wired() {
let points = active_hook_registrations(1, false);
assert!(points.contains(&"after_tool_call".to_string()));
}
#[test]
fn active_hook_registrations_adds_cli_hooks_when_loaded() {
let points = active_hook_registrations(0, true);
assert!(points.contains(&"cli_hooks".to_string()));
}
#[test]
fn active_trigger_features_lists_all_pipeline_behaviors() {
let features = active_trigger_features();
assert_eq!(
features,
vec![
"dedup".to_string(),
"cycle suppress".to_string(),
"fire-once rules".to_string(),
"inject-and-run".to_string(),
]
);
}