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

Function test_hook_verbs

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

Source from the content-addressed store, hash-verified

482
483 #[test]
484 fn test_hook_verbs() {
485 let hook = make_hook();
486 let verbs = hook.hook_verbs();
487 // Plugin verbs
488 assert!(verbs.contains(&"session-start"));
489 assert!(verbs.contains(&"session-end"));
490 assert!(verbs.contains(&"user-prompt"));
491 assert!(verbs.contains(&"stop"));
492 assert!(verbs.contains(&"before-tool"));
493 assert!(verbs.contains(&"after-tool"));
494 // Legacy shell verbs
495 assert!(verbs.contains(&"prompt-submit"));
496 assert!(verbs.contains(&"agent-stop"));
497 }
498
499 #[test]
500 fn test_install_is_noop() {

Callers

nothing calls this directly

Calls 2

make_hookFunction · 0.70
hook_verbsMethod · 0.45

Tested by

no test coverage detected