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

Function test_supported_hooks

atomic-agent/src/hooks/cline.rs:538–548  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

536
537 #[test]
538 fn test_supported_hooks() {
539 let hook = make_hook();
540 let hooks = hook.supported_hooks();
541 assert_eq!(hooks.len(), 6);
542 assert!(hooks.contains(&HookType::SessionStart));
543 assert!(hooks.contains(&HookType::SessionEnd));
544 assert!(hooks.contains(&HookType::TurnStart));
545 assert!(hooks.contains(&HookType::TurnEnd));
546 assert!(hooks.contains(&HookType::PreToolUse));
547 assert!(hooks.contains(&HookType::PostToolUse));
548 }
549
550 #[test]
551 fn test_supported_hooks_count() {

Callers

nothing calls this directly

Calls 2

make_hookFunction · 0.70
supported_hooksMethod · 0.45

Tested by

no test coverage detected