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

Source from the content-addressed store, hash-verified

1013 /// Test converting state mismatch error.
1014 #[test]
1015 fn test_convert_state_mismatch() {
1016 let err = RemoteError::state_mismatch("ABC", "DEF");
1017 let cli_err = convert_remote_error(err, "http://example.com");
1018
1019 assert!(matches!(cli_err, CliError::Conflict { .. }));
1020 }
1021
1022 // Formatting Tests
1023

Callers

nothing calls this directly

Calls 1

convert_remote_errorFunction · 0.70

Tested by

no test coverage detected