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

Function test_hook_verbs

atomic-agent/src/hooks/opencode.rs:716–726  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

714
715 #[test]
716 fn test_hook_verbs() {
717 let hook = make_hook();
718 let verbs = hook.hook_verbs();
719 assert_eq!(verbs.len(), 6);
720 assert!(verbs.contains(&"session-start"));
721 assert!(verbs.contains(&"session-end"));
722 assert!(verbs.contains(&"user-prompt"));
723 assert!(verbs.contains(&"stop"));
724 assert!(verbs.contains(&"before-tool"));
725 assert!(verbs.contains(&"after-tool"));
726 }
727
728 #[test]
729 fn test_default() {

Callers

nothing calls this directly

Calls 2

make_hookFunction · 0.70
hook_verbsMethod · 0.45

Tested by

no test coverage detected