Update weekly to reflect the new location of gomock.

This commit is contained in:
Alex Bramley 2012-02-03 23:13:00 +00:00
parent e0a5a57fe1
commit 01d58fc748
1 changed files with 55 additions and 55 deletions

View File

@ -4,7 +4,7 @@
package state package state
import ( import (
gomock "gomock.googlecode.com/hg/gomock" gomock "github.com/dsymonds/gomock/gomock"
) )
// Mock of StateTracker interface // Mock of StateTracker interface
@ -24,127 +24,127 @@ func NewMockStateTracker(ctrl *gomock.Controller) *MockStateTracker {
return mock return mock
} }
func (m *MockStateTracker) EXPECT() *_MockStateTrackerRecorder { func (_m *MockStateTracker) EXPECT() *_MockStateTrackerRecorder {
return m.recorder return _m.recorder
} }
func (m *MockStateTracker) NewNick(nick string) *Nick { func (_m *MockStateTracker) NewNick(nick string) *Nick {
ret := m.ctrl.Call(m, "NewNick", nick) ret := _m.ctrl.Call(_m, "NewNick", nick)
ret0, _ := ret[0].(*Nick) ret0, _ := ret[0].(*Nick)
return ret0 return ret0
} }
func (mr *_MockStateTrackerRecorder) NewNick(arg0 interface{}) *gomock.Call { func (_mr *_MockStateTrackerRecorder) NewNick(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCall(mr.mock, "NewNick", arg0) return _mr.mock.ctrl.RecordCall(_mr.mock, "NewNick", arg0)
} }
func (m *MockStateTracker) GetNick(nick string) *Nick { func (_m *MockStateTracker) GetNick(nick string) *Nick {
ret := m.ctrl.Call(m, "GetNick", nick) ret := _m.ctrl.Call(_m, "GetNick", nick)
ret0, _ := ret[0].(*Nick) ret0, _ := ret[0].(*Nick)
return ret0 return ret0
} }
func (mr *_MockStateTrackerRecorder) GetNick(arg0 interface{}) *gomock.Call { func (_mr *_MockStateTrackerRecorder) GetNick(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCall(mr.mock, "GetNick", arg0) return _mr.mock.ctrl.RecordCall(_mr.mock, "GetNick", arg0)
} }
func (m *MockStateTracker) ReNick(old string, neu string) { func (_m *MockStateTracker) ReNick(old string, neu string) {
m.ctrl.Call(m, "ReNick", old, neu) _m.ctrl.Call(_m, "ReNick", old, neu)
} }
func (mr *_MockStateTrackerRecorder) ReNick(arg0, arg1 interface{}) *gomock.Call { func (_mr *_MockStateTrackerRecorder) ReNick(arg0, arg1 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCall(mr.mock, "ReNick", arg0, arg1) return _mr.mock.ctrl.RecordCall(_mr.mock, "ReNick", arg0, arg1)
} }
func (m *MockStateTracker) DelNick(nick string) { func (_m *MockStateTracker) DelNick(nick string) {
m.ctrl.Call(m, "DelNick", nick) _m.ctrl.Call(_m, "DelNick", nick)
} }
func (mr *_MockStateTrackerRecorder) DelNick(arg0 interface{}) *gomock.Call { func (_mr *_MockStateTrackerRecorder) DelNick(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCall(mr.mock, "DelNick", arg0) return _mr.mock.ctrl.RecordCall(_mr.mock, "DelNick", arg0)
} }
func (m *MockStateTracker) NewChannel(channel string) *Channel { func (_m *MockStateTracker) NewChannel(channel string) *Channel {
ret := m.ctrl.Call(m, "NewChannel", channel) ret := _m.ctrl.Call(_m, "NewChannel", channel)
ret0, _ := ret[0].(*Channel) ret0, _ := ret[0].(*Channel)
return ret0 return ret0
} }
func (mr *_MockStateTrackerRecorder) NewChannel(arg0 interface{}) *gomock.Call { func (_mr *_MockStateTrackerRecorder) NewChannel(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCall(mr.mock, "NewChannel", arg0) return _mr.mock.ctrl.RecordCall(_mr.mock, "NewChannel", arg0)
} }
func (m *MockStateTracker) GetChannel(channel string) *Channel { func (_m *MockStateTracker) GetChannel(channel string) *Channel {
ret := m.ctrl.Call(m, "GetChannel", channel) ret := _m.ctrl.Call(_m, "GetChannel", channel)
ret0, _ := ret[0].(*Channel) ret0, _ := ret[0].(*Channel)
return ret0 return ret0
} }
func (mr *_MockStateTrackerRecorder) GetChannel(arg0 interface{}) *gomock.Call { func (_mr *_MockStateTrackerRecorder) GetChannel(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCall(mr.mock, "GetChannel", arg0) return _mr.mock.ctrl.RecordCall(_mr.mock, "GetChannel", arg0)
} }
func (m *MockStateTracker) DelChannel(channel string) { func (_m *MockStateTracker) DelChannel(channel string) {
m.ctrl.Call(m, "DelChannel", channel) _m.ctrl.Call(_m, "DelChannel", channel)
} }
func (mr *_MockStateTrackerRecorder) DelChannel(arg0 interface{}) *gomock.Call { func (_mr *_MockStateTrackerRecorder) DelChannel(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCall(mr.mock, "DelChannel", arg0) return _mr.mock.ctrl.RecordCall(_mr.mock, "DelChannel", arg0)
} }
func (m *MockStateTracker) Me() *Nick { func (_m *MockStateTracker) Me() *Nick {
ret := m.ctrl.Call(m, "Me") ret := _m.ctrl.Call(_m, "Me")
ret0, _ := ret[0].(*Nick) ret0, _ := ret[0].(*Nick)
return ret0 return ret0
} }
func (mr *_MockStateTrackerRecorder) Me() *gomock.Call { func (_mr *_MockStateTrackerRecorder) Me() *gomock.Call {
return mr.mock.ctrl.RecordCall(mr.mock, "Me") return _mr.mock.ctrl.RecordCall(_mr.mock, "Me")
} }
func (m *MockStateTracker) IsOn(channel string, nick string) (*ChanPrivs, bool) { func (_m *MockStateTracker) IsOn(channel string, nick string) (*ChanPrivs, bool) {
ret := m.ctrl.Call(m, "IsOn", channel, nick) ret := _m.ctrl.Call(_m, "IsOn", channel, nick)
ret0, _ := ret[0].(*ChanPrivs) ret0, _ := ret[0].(*ChanPrivs)
ret1, _ := ret[1].(bool) ret1, _ := ret[1].(bool)
return ret0, ret1 return ret0, ret1
} }
func (mr *_MockStateTrackerRecorder) IsOn(arg0, arg1 interface{}) *gomock.Call { func (_mr *_MockStateTrackerRecorder) IsOn(arg0, arg1 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCall(mr.mock, "IsOn", arg0, arg1) return _mr.mock.ctrl.RecordCall(_mr.mock, "IsOn", arg0, arg1)
} }
func (m *MockStateTracker) Associate(channel *Channel, nick *Nick) *ChanPrivs { func (_m *MockStateTracker) Associate(channel *Channel, nick *Nick) *ChanPrivs {
ret := m.ctrl.Call(m, "Associate", channel, nick) ret := _m.ctrl.Call(_m, "Associate", channel, nick)
ret0, _ := ret[0].(*ChanPrivs) ret0, _ := ret[0].(*ChanPrivs)
return ret0 return ret0
} }
func (mr *_MockStateTrackerRecorder) Associate(arg0, arg1 interface{}) *gomock.Call { func (_mr *_MockStateTrackerRecorder) Associate(arg0, arg1 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCall(mr.mock, "Associate", arg0, arg1) return _mr.mock.ctrl.RecordCall(_mr.mock, "Associate", arg0, arg1)
} }
func (m *MockStateTracker) Dissociate(channel *Channel, nick *Nick) { func (_m *MockStateTracker) Dissociate(channel *Channel, nick *Nick) {
m.ctrl.Call(m, "Dissociate", channel, nick) _m.ctrl.Call(_m, "Dissociate", channel, nick)
} }
func (mr *_MockStateTrackerRecorder) Dissociate(arg0, arg1 interface{}) *gomock.Call { func (_mr *_MockStateTrackerRecorder) Dissociate(arg0, arg1 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCall(mr.mock, "Dissociate", arg0, arg1) return _mr.mock.ctrl.RecordCall(_mr.mock, "Dissociate", arg0, arg1)
} }
func (m *MockStateTracker) Wipe() { func (_m *MockStateTracker) Wipe() {
m.ctrl.Call(m, "Wipe") _m.ctrl.Call(_m, "Wipe")
} }
func (mr *_MockStateTrackerRecorder) Wipe() *gomock.Call { func (_mr *_MockStateTrackerRecorder) Wipe() *gomock.Call {
return mr.mock.ctrl.RecordCall(mr.mock, "Wipe") return _mr.mock.ctrl.RecordCall(_mr.mock, "Wipe")
} }
func (m *MockStateTracker) String() string { func (_m *MockStateTracker) String() string {
ret := m.ctrl.Call(m, "String") ret := _m.ctrl.Call(_m, "String")
ret0, _ := ret[0].(string) ret0, _ := ret[0].(string)
return ret0 return ret0
} }
func (mr *_MockStateTrackerRecorder) String() *gomock.Call { func (_mr *_MockStateTrackerRecorder) String() *gomock.Call {
return mr.mock.ctrl.RecordCall(mr.mock, "String") return _mr.mock.ctrl.RecordCall(_mr.mock, "String")
} }