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

Function test_convert_state_mismatch

atomic-cli/src/commands/clone/helpers.rs:855–860  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

853 /// Test converting state mismatch error.
854 #[test]
855 fn test_convert_state_mismatch() {
856 let err = RemoteError::state_mismatch("ABC", "DEF");
857 let cli_err = convert_remote_error(err, "http://example.com");
858
859 assert!(matches!(cli_err, CliError::Conflict { .. }));
860 }
861
862 // Formatting Tests
863

Callers

nothing calls this directly

Calls 1

convert_remote_errorFunction · 0.70

Tested by

no test coverage detected