MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_supported_hooks

Function test_supported_hooks

atomic-agent/src/hooks/kilo.rs:471–481  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

469
470 #[test]
471 fn test_supported_hooks() {
472 let hook = make_hook();
473 let hooks = hook.supported_hooks();
474 assert_eq!(hooks.len(), 6);
475 assert!(hooks.contains(&HookType::SessionStart));
476 assert!(hooks.contains(&HookType::SessionEnd));
477 assert!(hooks.contains(&HookType::TurnStart));
478 assert!(hooks.contains(&HookType::TurnEnd));
479 assert!(hooks.contains(&HookType::PreToolUse));
480 assert!(hooks.contains(&HookType::PostToolUse));
481 }
482
483 #[test]
484 fn test_hook_verbs() {

Callers

nothing calls this directly

Calls 2

make_hookFunction · 0.70
supported_hooksMethod · 0.45

Tested by

no test coverage detected