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

Function test_json_response_no_message

atomic-cli/src/commands/agent/hooks.rs:958–966  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

956
957 #[test]
958 fn test_json_response_no_message() {
959 // When there's no message, we should not produce output.
960 // This tests the logic: if message.is_none(), don't println.
961 let result = atomic_agent::turn::orchestrator::DispatchResult::new(
962 "sess-1",
963 atomic_agent::turn::phase::Phase::Idle,
964 );
965 assert!(result.message.is_none());
966 }
967
968 #[test]
969 fn test_hooks_debug() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected