@@ -288,13 +288,13 @@ func TestUnexpectedArgValue_FirstArg(t *testing.T) {
288288 // the method argument (of TestStruct type) has 1 unexpected value (for the Message field)
289289 ctrl .Call (subject , "ActOnTestStructMethod" , TestStruct {Number : 123 , Message : "no message" }, 15 )
290290 }, "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) " )
292292
293293 reporter .assertFatal (func () {
294294 // the method argument (of TestStruct type) has 2 unexpected values (for both fields)
295295 ctrl .Call (subject , "ActOnTestStructMethod" , TestStruct {Number : 11 , Message : "no message" }, 15 )
296296 }, "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) " )
298298
299299 reporter .assertFatal (func () {
300300 // The expected call wasn't made.
@@ -313,7 +313,7 @@ func TestUnexpectedArgValue_SecondArg(t *testing.T) {
313313 reporter .assertFatal (func () {
314314 ctrl .Call (subject , "ActOnTestStructMethod" , TestStruct {Number : 123 , Message : "hello" }, 3 )
315315 }, "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) " )
317317
318318 reporter .assertFatal (func () {
319319 // The expected call wasn't made.
@@ -340,7 +340,7 @@ func TestUnexpectedArgValue_WantFormatter(t *testing.T) {
340340 reporter .assertFatal (func () {
341341 ctrl .Call (subject , "ActOnTestStructMethod" , TestStruct {Number : 123 , Message : "hello" }, 3 )
342342 }, "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" )
344344
345345 reporter .assertFatal (func () {
346346 // The expected call wasn't made.
@@ -711,7 +711,7 @@ func TestVariadicNoMatch(t *testing.T) {
711711 rep .assertFatal (func () {
712712 ctrl .Call (s , "VariadicMethod" , 1 )
713713 }, "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) " )
715715 ctrl .Call (s , "VariadicMethod" , 0 )
716716 ctrl .Finish ()
717717}
0 commit comments