mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
add ruleguard support, fix all the reported issues (#10335)
This commit is contained in:
@@ -184,7 +184,7 @@ func TestParseHexUint(t *testing.T) {
|
||||
for _, tt := range tests {
|
||||
got, err := parseHexUint([]byte(tt.in))
|
||||
if tt.wantErr != "" {
|
||||
if !strings.Contains(fmt.Sprint(err), tt.wantErr) {
|
||||
if err != nil && !strings.Contains(err.Error(), tt.wantErr) {
|
||||
t.Errorf("parseHexUint(%q) = %v, %v; want error %q", tt.in, got, err, tt.wantErr)
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user