@@ -47,7 +47,7 @@ func TestNSUpdate_buildDeleteCommand(t *testing.T) {
47
47
Builder : tt .fields .Builder ,
48
48
}
49
49
if got := nsu .buildDeleteCommand (tt .args .recordName , tt .args .recordType ); got != tt .want {
50
- t .Errorf ("NSUpdate.buildDeleteCommand() = %v, want %v" , got , tt .want )
50
+ t .Errorf ("%s: NSUpdate.buildDeleteCommand() = %v, want %v" , tt . name , got , tt .want )
51
51
}
52
52
})
53
53
}
@@ -94,7 +94,7 @@ func TestNSUpdate_buildAddCommand(t *testing.T) {
94
94
Builder : tt .fields .Builder ,
95
95
}
96
96
if got := nsu .buildAddCommand (tt .args .recordName , tt .args .recordType , tt .args .value , tt .args .ttl ); got != tt .want {
97
- t .Errorf ("NSUpdate.buildAddCommand() = %v, want %v" , got , tt .want )
97
+ t .Errorf ("%s: NSUpdate.buildAddCommand() = %v, want %v" , tt . name , got , tt .want )
98
98
}
99
99
})
100
100
}
@@ -149,12 +149,12 @@ func TestCheck(t *testing.T) {
149
149
t .Errorf ("It was expected success=false but returned true" )
150
150
}
151
151
if len (errs ) != len (test .expected .errs ) {
152
- t .Errorf ("The error array length must be %d but got %d" , len (test .expected .errs ), len (errs ))
152
+ t .Errorf ("%s: The error array length must be %d but got %d" , test . name , len (test .expected .errs ), len (errs ))
153
153
t .FailNow ()
154
154
}
155
155
for i , err := range test .expected .errs {
156
156
if errs [i ] != err {
157
- t .Errorf ("Expected message was %s but got %s" , err , errs [i ])
157
+ t .Errorf ("%s: Expected message was %s but got %s" , test . name , err , errs [i ])
158
158
}
159
159
}
160
160
})
@@ -271,7 +271,7 @@ func TestNSUpdate_getKeyFilePath(t *testing.T) {
271
271
Builder : * tt .fields .Builder ,
272
272
}
273
273
if got := nsu .getKeyFilePath (); got != tt .want {
274
- t .Errorf ("NSUpdate.getKeyFilePath() = %v, want %v" , got , tt .want )
274
+ t .Errorf ("%s: NSUpdate.getKeyFilePath() = %v, want %v" , tt . name , got , tt .want )
275
275
}
276
276
})
277
277
}
0 commit comments