Fixes to gomock output so tests using mock pass. reflect.DeepEqual is picky.

This commit is contained in:
Alex Bramley 2011-11-10 15:05:22 +00:00
parent 80d8cd4ea7
commit cab3d3da21
1 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ func (m *MockEventRegistry) AddHandler(h Handler, names ...string) {
m.ctrl.Call(m, "AddHandler", h, names) m.ctrl.Call(m, "AddHandler", h, names)
} }
func (mr *_MockEventRegistryRecorder) AddHandler(arg0 interface{}, arg1 ...interface{}) *gomock.Call { func (mr *_MockEventRegistryRecorder) AddHandler(arg0 interface{}, arg1 ...string) *gomock.Call {
return mr.mock.ctrl.RecordCall(mr.mock, "AddHandler", arg0, arg1) return mr.mock.ctrl.RecordCall(mr.mock, "AddHandler", arg0, arg1)
} }
@ -106,7 +106,7 @@ func (m *MockEventRegistry) DelHandler(h Handler, names ...string) {
m.ctrl.Call(m, "DelHandler", h, names) m.ctrl.Call(m, "DelHandler", h, names)
} }
func (mr *_MockEventRegistryRecorder) DelHandler(arg0 interface{}, arg1 ...interface{}) *gomock.Call { func (mr *_MockEventRegistryRecorder) DelHandler(arg0 interface{}, arg1 ...string) *gomock.Call {
return mr.mock.ctrl.RecordCall(mr.mock, "DelHandler", arg0, arg1) return mr.mock.ctrl.RecordCall(mr.mock, "DelHandler", arg0, arg1)
} }