Something went wrong. Try again.
sloproxy
Something went wrong. Try again.
444 B · 16 lines
Go
at main
1234567891011121314151617package auth_test
import ( "net/http" "testing"
cliproxyauth "github.com/router-for-me/CLIProxyAPI/v7/sdk/cliproxy/auth")
func TestErrorLegacyUnkeyedLiteralCompatibility(t *testing.T) { err := cliproxyauth.Error{"code", "message", false, http.StatusRequestTimeout}
if err.Code != "code" || err.Message != "message" || err.Retryable || err.HTTPStatus != http.StatusRequestTimeout { t.Fatalf("unexpected error fields: %#v", err) }}