More linting fun
This commit is contained in:
@@ -19,29 +19,29 @@ func TestErrors(t *testing.T) {
|
||||
ne := New(e.Id, e.Detail, e.Code)
|
||||
|
||||
if e.Error() != ne.Error() {
|
||||
t.Fatal("Expected %s got %s", e.Error(), ne.Error())
|
||||
t.Fatalf("Expected %s got %s", e.Error(), ne.Error())
|
||||
}
|
||||
|
||||
pe := Parse(ne.Error())
|
||||
|
||||
if pe == nil {
|
||||
t.Fatal("Expected error got nil %v", pe)
|
||||
t.Fatalf("Expected error got nil %v", pe)
|
||||
}
|
||||
|
||||
if pe.Id != e.Id {
|
||||
t.Fatal("Expected %s got %s", e.Id, pe.Id)
|
||||
t.Fatalf("Expected %s got %s", e.Id, pe.Id)
|
||||
}
|
||||
|
||||
if pe.Detail != e.Detail {
|
||||
t.Fatal("Expected %s got %s", e.Detail, pe.Detail)
|
||||
t.Fatalf("Expected %s got %s", e.Detail, pe.Detail)
|
||||
}
|
||||
|
||||
if pe.Code != e.Code {
|
||||
t.Fatal("Expected %s got %s", e.Code, pe.Code)
|
||||
t.Fatalf("Expected %s got %s", e.Code, pe.Code)
|
||||
}
|
||||
|
||||
if pe.Status != e.Status {
|
||||
t.Fatal("Expected %s got %s", e.Status, pe.Status)
|
||||
t.Fatalf("Expected %s got %s", e.Status, pe.Status)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user