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

Function test_hook_verbs

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

Source from the content-addressed store, hash-verified

488
489 #[test]
490 fn test_hook_verbs() {
491 let hook = make_hook();
492 let verbs = hook.hook_verbs();
493 // Plugin verbs
494 assert!(verbs.contains(&"session-start"));
495 assert!(verbs.contains(&"session-end"));
496 assert!(verbs.contains(&"user-prompt"));
497 assert!(verbs.contains(&"stop"));
498 assert!(verbs.contains(&"before-tool"));
499 assert!(verbs.contains(&"after-tool"));
500 // Legacy shell verbs
501 assert!(verbs.contains(&"prompt-submit"));
502 assert!(verbs.contains(&"agent-stop"));
503 }
504
505 #[test]
506 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