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

Function map_remote_409_to_already_exists

atomic-teams/src/error.rs:140–144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

138
139 #[test]
140 fn map_remote_409_to_already_exists() {
141 let remote = atomic_remote::RemoteError::http(409, "Conflict");
142 let err = map_remote_error(remote, "ignored");
143 assert!(matches!(err, TeamsError::AlreadyExists(ref s) if s == "Conflict"));
144 }
145
146 #[test]
147 fn map_remote_500_to_remote() {

Callers

nothing calls this directly

Calls 1

map_remote_errorFunction · 0.85

Tested by

no test coverage detected