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

Function test_hook_verbs

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

Source from the content-addressed store, hash-verified

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