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:996–1001  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

994 /// Test converting state mismatch error.
995 #[test]
996 fn test_convert_state_mismatch() {
997 let err = RemoteError::state_mismatch("ABC", "DEF");
998 let cli_err = convert_remote_error(err, "http://example.com");
999
1000 assert!(matches!(cli_err, CliError::Conflict { .. }));
1001 }
1002
1003 // Formatting Tests
1004

Callers

nothing calls this directly

Calls 1

convert_remote_errorFunction · 0.70

Tested by

no test coverage detected