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

Function test_status_error_display

atomic-repository/src/status.rs:1805–1817  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1803
1804 #[test]
1805 fn test_status_error_display() {
1806 let err = StatusError::Database("connection failed".to_string());
1807 assert!(err.to_string().contains("connection failed"));
1808
1809 let err = StatusError::InvalidState("corrupt tree".to_string());
1810 assert!(err.to_string().contains("corrupt tree"));
1811
1812 let err = StatusError::PathError {
1813 path: "/some/path".to_string(),
1814 details: "invalid utf8".to_string(),
1815 };
1816 assert!(err.to_string().contains("/some/path"));
1817 }
1818}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected