From cab3d3da217e35fb7dcd7d731b3afbd9ab985a15 Mon Sep 17 00:00:00 2001 From: Alex Bramley Date: Thu, 10 Nov 2011 15:05:22 +0000 Subject: [PATCH] Fixes to gomock output so tests using mock pass. reflect.DeepEqual is picky. --- event/mock_registry.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/event/mock_registry.go b/event/mock_registry.go index 005bca3..bcdbc1b 100644 --- a/event/mock_registry.go +++ b/event/mock_registry.go @@ -98,7 +98,7 @@ func (m *MockEventRegistry) AddHandler(h Handler, names ...string) { 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) } @@ -106,7 +106,7 @@ func (m *MockEventRegistry) DelHandler(h Handler, names ...string) { 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) }