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

Function test_hook_verbs

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

Source from the content-addressed store, hash-verified

560
561 #[test]
562 fn test_hook_verbs() {
563 let hook = make_hook();
564 let verbs = hook.hook_verbs();
565 assert_eq!(verbs.len(), 7);
566 assert!(verbs.contains(&"task-start"));
567 assert!(verbs.contains(&"task-resume"));
568 assert!(verbs.contains(&"task-complete"));
569 assert!(verbs.contains(&"task-cancel"));
570 assert!(verbs.contains(&"user-prompt"));
571 assert!(verbs.contains(&"post-tool"));
572 assert!(verbs.contains(&"pre-tool"));
573 }
574
575 #[test]
576 fn test_default() {

Callers

nothing calls this directly

Calls 2

make_hookFunction · 0.70
hook_verbsMethod · 0.45

Tested by

no test coverage detected