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

Function test_hook_verbs

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

Source from the content-addressed store, hash-verified

552
553 #[test]
554 fn test_hook_verbs() {
555 let hook = make_hook();
556 let verbs = hook.hook_verbs();
557 assert_eq!(verbs.len(), 7);
558 assert!(verbs.contains(&"task-start"));
559 assert!(verbs.contains(&"task-resume"));
560 assert!(verbs.contains(&"task-complete"));
561 assert!(verbs.contains(&"task-cancel"));
562 assert!(verbs.contains(&"user-prompt"));
563 assert!(verbs.contains(&"post-tool"));
564 assert!(verbs.contains(&"pre-tool"));
565 }
566
567 #[test]
568 fn test_default() {

Callers

nothing calls this directly

Calls 2

make_hookFunction · 0.70
hook_verbsMethod · 0.45

Tested by

no test coverage detected