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

Source from the content-addressed store, hash-verified

916 /// Test converting state mismatch error.
917 #[test]
918 fn test_convert_state_mismatch() {
919 let err = RemoteError::state_mismatch("ABC", "DEF");
920 let cli_err = convert_remote_error(err, "http://example.com");
921
922 assert!(matches!(cli_err, CliError::Conflict { .. }));
923 }
924}

Callers

nothing calls this directly

Calls 1

convert_remote_errorFunction · 0.70

Tested by

no test coverage detected