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

Function test_convert_auth_failed

atomic-cli/src/commands/push/helpers.rs:926–931  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

924
925 #[test]
926 fn test_convert_auth_failed() {
927 let err = RemoteError::auth_failed("http://example.com", "invalid token");
928 let cli_err = convert_remote_error(err, "http://example.com");
929
930 assert!(matches!(cli_err, CliError::AuthenticationFailed { .. }));
931 }
932
933 #[test]
934 fn test_convert_repo_not_found() {

Callers

nothing calls this directly

Calls 1

convert_remote_errorFunction · 0.70

Tested by

no test coverage detected