@@ -281,20 +281,20 @@ func TestUnexpectedArgValue_FirstArg(t *testing.T) {
281
281
defer reporter .recoverUnexpectedFatal ()
282
282
subject := new (Subject )
283
283
284
- expectedArg0 := TestStruct {Number : 123 , Message : "hello" }
284
+ expectedArg0 := TestStruct {Number : 123 , Message : "hello %s " }
285
285
ctrl .RecordCall (subject , "ActOnTestStructMethod" , expectedArg0 , 15 )
286
286
287
287
reporter .assertFatal (func () {
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} (gomock_test.TestStruct)\n Want: is equal to {123 hello} (gomock_test.TestStruct)" )
291
+ "Got: {123 no message} (gomock_test.TestStruct)\n Want: is equal to {123 hello %s } (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} (gomock_test.TestStruct)\n Want: is equal to {123 hello} (gomock_test.TestStruct)" )
297
+ "Got: {11 no message} (gomock_test.TestStruct)\n Want: is equal to {123 hello %s } (gomock_test.TestStruct)" )
298
298
299
299
reporter .assertFatal (func () {
300
300
// The expected call wasn't made.
0 commit comments