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

Function test_supported_hooks

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

Source from the content-addressed store, hash-verified

533
534 #[test]
535 fn test_supported_hooks() {
536 let hook = make_hook();
537 let hooks = hook.supported_hooks();
538 assert_eq!(hooks.len(), 6);
539 assert!(hooks.contains(&HookType::SessionStart));
540 assert!(hooks.contains(&HookType::SessionEnd));
541 assert!(hooks.contains(&HookType::TurnStart));
542 assert!(hooks.contains(&HookType::TurnEnd));
543 assert!(hooks.contains(&HookType::PreToolUse));
544 assert!(hooks.contains(&HookType::PostToolUse));
545 }
546
547 #[test]
548 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