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

Function test_from_json_error

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

Source from the content-addressed store, hash-verified

718
719 #[test]
720 fn test_from_json_error() {
721 let json_err = serde_json::from_str::<serde_json::Value>("not json").unwrap_err();
722 let agent_err: AgentError = json_err.into();
723 assert!(matches!(agent_err, AgentError::Json(_)));
724 }
725
726 #[test]
727 fn test_error_is_send_sync() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected