@@ -288,13 +288,13 @@ func TestUnexpectedArgValue_FirstArg(t *testing.T) {
288
288
// the method argument (of TestStruct type) has 1 unexpected value (for the Message field)
289
289
ctrl .Call (subject , "ActOnTestStructMethod" , TestStruct {Number : 123 , Message : "no message" }, 15 )
290
290
}, "Unexpected call to" , "doesn't match the argument at index 0" ,
291
- "Got: {123 no message}\n Want: is equal to {123 hello}" )
291
+ "Got: {123 no message} (gomock_test.TestStruct) \n Want: is equal to {123 hello} (gomock_test.TestStruct) " )
292
292
293
293
reporter .assertFatal (func () {
294
294
// the method argument (of TestStruct type) has 2 unexpected values (for both fields)
295
295
ctrl .Call (subject , "ActOnTestStructMethod" , TestStruct {Number : 11 , Message : "no message" }, 15 )
296
296
}, "Unexpected call to" , "doesn't match the argument at index 0" ,
297
- "Got: {11 no message}\n Want: is equal to {123 hello}" )
297
+ "Got: {11 no message} (gomock_test.TestStruct) \n Want: is equal to {123 hello} (gomock_test.TestStruct) " )
298
298
299
299
reporter .assertFatal (func () {
300
300
// The expected call wasn't made.
@@ -313,7 +313,7 @@ func TestUnexpectedArgValue_SecondArg(t *testing.T) {
313
313
reporter .assertFatal (func () {
314
314
ctrl .Call (subject , "ActOnTestStructMethod" , TestStruct {Number : 123 , Message : "hello" }, 3 )
315
315
}, "Unexpected call to" , "doesn't match the argument at index 1" ,
316
- "Got: 3\n Want: is equal to 15" )
316
+ "Got: 3 (int) \n Want: is equal to 15 (int) " )
317
317
318
318
reporter .assertFatal (func () {
319
319
// The expected call wasn't made.
@@ -340,7 +340,7 @@ func TestUnexpectedArgValue_WantFormatter(t *testing.T) {
340
340
reporter .assertFatal (func () {
341
341
ctrl .Call (subject , "ActOnTestStructMethod" , TestStruct {Number : 123 , Message : "hello" }, 3 )
342
342
}, "Unexpected call to" , "doesn't match the argument at index 1" ,
343
- "Got: 3\n Want: is equal to fifteen" )
343
+ "Got: 3 (int) \n Want: is equal to fifteen" )
344
344
345
345
reporter .assertFatal (func () {
346
346
// The expected call wasn't made.
@@ -711,7 +711,7 @@ func TestVariadicNoMatch(t *testing.T) {
711
711
rep .assertFatal (func () {
712
712
ctrl .Call (s , "VariadicMethod" , 1 )
713
713
}, "expected call at" , "doesn't match the argument at index 0" ,
714
- "Got: 1\n Want: is equal to 0" )
714
+ "Got: 1 (int) \n Want: is equal to 0 (int) " )
715
715
ctrl .Call (s , "VariadicMethod" , 0 )
716
716
ctrl .Finish ()
717
717
}
0 commit comments