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

Function test_convert_state_mismatch

atomic-cli/src/commands/pull/helpers.rs:900–905  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

898 /// Test converting state mismatch error.
899 #[test]
900 fn test_convert_state_mismatch() {
901 let err = RemoteError::state_mismatch("ABC", "DEF");
902 let cli_err = convert_remote_error(err, "http://example.com");
903
904 assert!(matches!(cli_err, CliError::Conflict { .. }));
905 }
906}

Callers

nothing calls this directly

Calls 1

convert_remote_errorFunction · 0.70

Tested by

no test coverage detected