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

Function test_convert_auth_failed

atomic-cli/src/commands/clone/helpers.rs:911–916  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

909 /// Test converting authentication failed error.
910 #[test]
911 fn test_convert_auth_failed() {
912 let err = RemoteError::auth_failed("http://example.com", "bad token");
913 let cli_err = convert_remote_error(err, "http://example.com");
914
915 assert!(matches!(cli_err, CliError::AuthenticationFailed { .. }));
916 }
917
918 /// Test converting repository not found error.
919 #[test]

Callers

nothing calls this directly

Calls 1

convert_remote_errorFunction · 0.70

Tested by

no test coverage detected