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

Function test_from_io_error

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

Source from the content-addressed store, hash-verified

710
711 #[test]
712 fn test_from_io_error() {
713 let io_err = std::io::Error::new(std::io::ErrorKind::NotFound, "file not found");
714 let agent_err: AgentError = io_err.into();
715 assert!(matches!(agent_err, AgentError::Io(_)));
716 assert!(agent_err.to_string().contains("file not found"));
717 }
718
719 #[test]
720 fn test_from_json_error() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected