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

Function test_error_display_hook_parse_failed

atomic-agent/src/error.rs:475–485  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

473
474 #[test]
475 fn test_error_display_hook_parse_failed() {
476 let err = AgentError::HookParseFailed {
477 agent: "claude-code".to_string(),
478 hook_type: "stop".to_string(),
479 reason: "missing session_id field".to_string(),
480 };
481 let msg = err.to_string();
482 assert!(msg.contains("claude-code"));
483 assert!(msg.contains("stop"));
484 assert!(msg.contains("missing session_id"));
485 }
486
487 #[test]
488 fn test_error_display_record_failed() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected