Renamed variables for consistency

This commit is contained in:
Michael Bridgen committed 2014-10-23 16:23:55 +01:00
1 parent c63b163703
commit 840c0b9f86
10 files changed
+135 -134

No files matched your search

+6 -6
View File
@@ -18,15 +18,15 @@ func assertStatus(t *testing.T, got int, wanted int, desc string) {
}
func assertErrorInterface(t *testing.T, got interface{}, wanted interface{}, desc string) {
got_t, wanted_t := reflect.TypeOf(got), reflect.TypeOf(wanted).Elem()
if !got_t.Implements(wanted_t) {
t.Fatalf("Expected %s but got %s (%s)", wanted_t.String(), got_t.String(), desc)
gotT, wantedT := reflect.TypeOf(got), reflect.TypeOf(wanted).Elem()
if !gotT.Implements(wantedT) {
t.Fatalf("Expected %s but got %s (%s)", wantedT.String(), gotT.String(), desc)
}
}
func assertErrorType(t *testing.T, got interface{}, wanted interface{}, desc string) {
got_t, wanted_t := reflect.TypeOf(got), reflect.TypeOf(wanted).Elem()
if got_t != wanted_t {
t.Fatalf("Expected %s but got %s (%s)", wanted_t.String(), got_t.String(), desc)
gotT, wantedT := reflect.TypeOf(got), reflect.TypeOf(wanted).Elem()
if gotT != wantedT {
t.Fatalf("Expected %s but got %s (%s)", wantedT.String(), gotT.String(), desc)
}
}