2011-11-05 12:22:04 +00:00
|
|
|
// Automatically generated by MockGen. DO NOT EDIT!
|
|
|
|
// Source: tracker.go
|
|
|
|
|
|
|
|
package state
|
|
|
|
|
|
|
|
import (
|
2015-06-13 09:43:59 +00:00
|
|
|
gomock "github.com/golang/mock/gomock"
|
2011-11-05 12:22:04 +00:00
|
|
|
)
|
|
|
|
|
2013-02-16 11:29:56 +00:00
|
|
|
// Mock of Tracker interface
|
|
|
|
type MockTracker struct {
|
2011-11-05 12:22:04 +00:00
|
|
|
ctrl *gomock.Controller
|
2013-02-16 11:29:56 +00:00
|
|
|
recorder *_MockTrackerRecorder
|
2011-11-05 12:22:04 +00:00
|
|
|
}
|
|
|
|
|
2013-02-16 11:29:56 +00:00
|
|
|
// Recorder for MockTracker (not exported)
|
|
|
|
type _MockTrackerRecorder struct {
|
|
|
|
mock *MockTracker
|
2011-11-05 12:22:04 +00:00
|
|
|
}
|
|
|
|
|
2013-02-16 11:29:56 +00:00
|
|
|
func NewMockTracker(ctrl *gomock.Controller) *MockTracker {
|
|
|
|
mock := &MockTracker{ctrl: ctrl}
|
|
|
|
mock.recorder = &_MockTrackerRecorder{mock}
|
2011-11-05 12:22:04 +00:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2013-02-16 11:29:56 +00:00
|
|
|
func (_m *MockTracker) EXPECT() *_MockTrackerRecorder {
|
2012-02-03 23:13:00 +00:00
|
|
|
return _m.recorder
|
2011-11-05 12:22:04 +00:00
|
|
|
}
|
|
|
|
|
2013-02-16 11:29:56 +00:00
|
|
|
func (_m *MockTracker) NewNick(nick string) *Nick {
|
2012-02-03 23:13:00 +00:00
|
|
|
ret := _m.ctrl.Call(_m, "NewNick", nick)
|
2011-11-05 12:22:04 +00:00
|
|
|
ret0, _ := ret[0].(*Nick)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2013-02-16 11:29:56 +00:00
|
|
|
func (_mr *_MockTrackerRecorder) NewNick(arg0 interface{}) *gomock.Call {
|
2012-02-03 23:13:00 +00:00
|
|
|
return _mr.mock.ctrl.RecordCall(_mr.mock, "NewNick", arg0)
|
2011-11-05 12:22:04 +00:00
|
|
|
}
|
|
|
|
|
2013-02-16 11:29:56 +00:00
|
|
|
func (_m *MockTracker) GetNick(nick string) *Nick {
|
2012-02-03 23:13:00 +00:00
|
|
|
ret := _m.ctrl.Call(_m, "GetNick", nick)
|
2011-11-05 12:22:04 +00:00
|
|
|
ret0, _ := ret[0].(*Nick)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2013-02-16 11:29:56 +00:00
|
|
|
func (_mr *_MockTrackerRecorder) GetNick(arg0 interface{}) *gomock.Call {
|
2012-02-03 23:13:00 +00:00
|
|
|
return _mr.mock.ctrl.RecordCall(_mr.mock, "GetNick", arg0)
|
2011-11-05 12:22:04 +00:00
|
|
|
}
|
|
|
|
|
2017-10-20 11:42:59 +00:00
|
|
|
func (_m *MockTracker) GetNickByHostmask(host string) *Nick {
|
|
|
|
ret := _m.ctrl.Call(_m, "GetNickByHostmask", host)
|
|
|
|
ret0, _ := ret[0].(*Nick)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (_mr *_MockTrackerRecorder) GetNickByHostmask(arg0 interface{}) *gomock.Call {
|
|
|
|
return _mr.mock.ctrl.RecordCall(_mr.mock, "GetNickByHostmask", arg0)
|
|
|
|
}
|
|
|
|
|
2014-12-31 17:50:03 +00:00
|
|
|
func (_m *MockTracker) ReNick(old string, neu string) *Nick {
|
|
|
|
ret := _m.ctrl.Call(_m, "ReNick", old, neu)
|
|
|
|
ret0, _ := ret[0].(*Nick)
|
|
|
|
return ret0
|
2011-11-05 12:22:04 +00:00
|
|
|
}
|
|
|
|
|
2013-02-16 11:29:56 +00:00
|
|
|
func (_mr *_MockTrackerRecorder) ReNick(arg0, arg1 interface{}) *gomock.Call {
|
2012-02-03 23:13:00 +00:00
|
|
|
return _mr.mock.ctrl.RecordCall(_mr.mock, "ReNick", arg0, arg1)
|
2011-11-05 12:22:04 +00:00
|
|
|
}
|
|
|
|
|
2014-12-31 17:50:03 +00:00
|
|
|
func (_m *MockTracker) DelNick(nick string) *Nick {
|
|
|
|
ret := _m.ctrl.Call(_m, "DelNick", nick)
|
|
|
|
ret0, _ := ret[0].(*Nick)
|
|
|
|
return ret0
|
2011-11-05 12:22:04 +00:00
|
|
|
}
|
|
|
|
|
2013-02-16 11:29:56 +00:00
|
|
|
func (_mr *_MockTrackerRecorder) DelNick(arg0 interface{}) *gomock.Call {
|
2012-02-03 23:13:00 +00:00
|
|
|
return _mr.mock.ctrl.RecordCall(_mr.mock, "DelNick", arg0)
|
2011-11-05 12:22:04 +00:00
|
|
|
}
|
|
|
|
|
2014-12-31 17:50:03 +00:00
|
|
|
func (_m *MockTracker) NickInfo(nick string, ident string, host string, name string) *Nick {
|
|
|
|
ret := _m.ctrl.Call(_m, "NickInfo", nick, ident, host, name)
|
|
|
|
ret0, _ := ret[0].(*Nick)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (_mr *_MockTrackerRecorder) NickInfo(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
|
|
|
|
return _mr.mock.ctrl.RecordCall(_mr.mock, "NickInfo", arg0, arg1, arg2, arg3)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (_m *MockTracker) NickModes(nick string, modestr string) *Nick {
|
|
|
|
ret := _m.ctrl.Call(_m, "NickModes", nick, modestr)
|
|
|
|
ret0, _ := ret[0].(*Nick)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (_mr *_MockTrackerRecorder) NickModes(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
return _mr.mock.ctrl.RecordCall(_mr.mock, "NickModes", arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2013-02-16 11:29:56 +00:00
|
|
|
func (_m *MockTracker) NewChannel(channel string) *Channel {
|
2012-02-03 23:13:00 +00:00
|
|
|
ret := _m.ctrl.Call(_m, "NewChannel", channel)
|
2011-11-05 12:22:04 +00:00
|
|
|
ret0, _ := ret[0].(*Channel)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2013-02-16 11:29:56 +00:00
|
|
|
func (_mr *_MockTrackerRecorder) NewChannel(arg0 interface{}) *gomock.Call {
|
2012-02-03 23:13:00 +00:00
|
|
|
return _mr.mock.ctrl.RecordCall(_mr.mock, "NewChannel", arg0)
|
2011-11-05 12:22:04 +00:00
|
|
|
}
|
|
|
|
|
2013-02-16 11:29:56 +00:00
|
|
|
func (_m *MockTracker) GetChannel(channel string) *Channel {
|
2012-02-03 23:13:00 +00:00
|
|
|
ret := _m.ctrl.Call(_m, "GetChannel", channel)
|
2011-11-05 12:22:04 +00:00
|
|
|
ret0, _ := ret[0].(*Channel)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2013-02-16 11:29:56 +00:00
|
|
|
func (_mr *_MockTrackerRecorder) GetChannel(arg0 interface{}) *gomock.Call {
|
2012-02-03 23:13:00 +00:00
|
|
|
return _mr.mock.ctrl.RecordCall(_mr.mock, "GetChannel", arg0)
|
2011-11-05 12:22:04 +00:00
|
|
|
}
|
|
|
|
|
2014-12-31 17:50:03 +00:00
|
|
|
func (_m *MockTracker) DelChannel(channel string) *Channel {
|
|
|
|
ret := _m.ctrl.Call(_m, "DelChannel", channel)
|
|
|
|
ret0, _ := ret[0].(*Channel)
|
|
|
|
return ret0
|
2011-11-05 12:22:04 +00:00
|
|
|
}
|
|
|
|
|
2013-02-16 11:29:56 +00:00
|
|
|
func (_mr *_MockTrackerRecorder) DelChannel(arg0 interface{}) *gomock.Call {
|
2012-02-03 23:13:00 +00:00
|
|
|
return _mr.mock.ctrl.RecordCall(_mr.mock, "DelChannel", arg0)
|
2011-11-05 12:22:04 +00:00
|
|
|
}
|
|
|
|
|
2014-12-31 17:50:03 +00:00
|
|
|
func (_m *MockTracker) Topic(channel string, topic string) *Channel {
|
|
|
|
ret := _m.ctrl.Call(_m, "Topic", channel, topic)
|
|
|
|
ret0, _ := ret[0].(*Channel)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (_mr *_MockTrackerRecorder) Topic(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
return _mr.mock.ctrl.RecordCall(_mr.mock, "Topic", arg0, arg1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (_m *MockTracker) ChannelModes(channel string, modestr string, modeargs ...string) *Channel {
|
|
|
|
_s := []interface{}{channel, modestr}
|
|
|
|
for _, _x := range modeargs {
|
|
|
|
_s = append(_s, _x)
|
|
|
|
}
|
|
|
|
ret := _m.ctrl.Call(_m, "ChannelModes", _s...)
|
|
|
|
ret0, _ := ret[0].(*Channel)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (_mr *_MockTrackerRecorder) ChannelModes(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
_s := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
return _mr.mock.ctrl.RecordCall(_mr.mock, "ChannelModes", _s...)
|
|
|
|
}
|
|
|
|
|
2013-02-16 11:29:56 +00:00
|
|
|
func (_m *MockTracker) Me() *Nick {
|
2012-02-03 23:13:00 +00:00
|
|
|
ret := _m.ctrl.Call(_m, "Me")
|
2011-11-05 12:22:04 +00:00
|
|
|
ret0, _ := ret[0].(*Nick)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2013-02-16 11:29:56 +00:00
|
|
|
func (_mr *_MockTrackerRecorder) Me() *gomock.Call {
|
2012-02-03 23:13:00 +00:00
|
|
|
return _mr.mock.ctrl.RecordCall(_mr.mock, "Me")
|
2011-11-05 12:22:04 +00:00
|
|
|
}
|
|
|
|
|
2013-02-16 11:29:56 +00:00
|
|
|
func (_m *MockTracker) IsOn(channel string, nick string) (*ChanPrivs, bool) {
|
2012-02-03 23:13:00 +00:00
|
|
|
ret := _m.ctrl.Call(_m, "IsOn", channel, nick)
|
2011-11-05 12:22:04 +00:00
|
|
|
ret0, _ := ret[0].(*ChanPrivs)
|
|
|
|
ret1, _ := ret[1].(bool)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2013-02-16 11:29:56 +00:00
|
|
|
func (_mr *_MockTrackerRecorder) IsOn(arg0, arg1 interface{}) *gomock.Call {
|
2012-02-03 23:13:00 +00:00
|
|
|
return _mr.mock.ctrl.RecordCall(_mr.mock, "IsOn", arg0, arg1)
|
2011-11-05 12:22:04 +00:00
|
|
|
}
|
|
|
|
|
2014-12-31 17:50:03 +00:00
|
|
|
func (_m *MockTracker) Associate(channel string, nick string) *ChanPrivs {
|
2012-02-03 23:13:00 +00:00
|
|
|
ret := _m.ctrl.Call(_m, "Associate", channel, nick)
|
2011-11-05 12:22:04 +00:00
|
|
|
ret0, _ := ret[0].(*ChanPrivs)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2013-02-16 11:29:56 +00:00
|
|
|
func (_mr *_MockTrackerRecorder) Associate(arg0, arg1 interface{}) *gomock.Call {
|
2012-02-03 23:13:00 +00:00
|
|
|
return _mr.mock.ctrl.RecordCall(_mr.mock, "Associate", arg0, arg1)
|
2011-11-05 12:22:04 +00:00
|
|
|
}
|
|
|
|
|
2014-12-31 17:50:03 +00:00
|
|
|
func (_m *MockTracker) Dissociate(channel string, nick string) {
|
2012-02-03 23:13:00 +00:00
|
|
|
_m.ctrl.Call(_m, "Dissociate", channel, nick)
|
2011-11-05 12:22:04 +00:00
|
|
|
}
|
|
|
|
|
2013-02-16 11:29:56 +00:00
|
|
|
func (_mr *_MockTrackerRecorder) Dissociate(arg0, arg1 interface{}) *gomock.Call {
|
2012-02-03 23:13:00 +00:00
|
|
|
return _mr.mock.ctrl.RecordCall(_mr.mock, "Dissociate", arg0, arg1)
|
2011-11-05 12:22:04 +00:00
|
|
|
}
|
|
|
|
|
2013-02-16 11:29:56 +00:00
|
|
|
func (_m *MockTracker) Wipe() {
|
2012-02-03 23:13:00 +00:00
|
|
|
_m.ctrl.Call(_m, "Wipe")
|
2011-11-05 12:22:04 +00:00
|
|
|
}
|
|
|
|
|
2013-02-16 11:29:56 +00:00
|
|
|
func (_mr *_MockTrackerRecorder) Wipe() *gomock.Call {
|
2012-02-03 23:13:00 +00:00
|
|
|
return _mr.mock.ctrl.RecordCall(_mr.mock, "Wipe")
|
2011-11-05 12:22:04 +00:00
|
|
|
}
|
|
|
|
|
2013-02-16 11:29:56 +00:00
|
|
|
func (_m *MockTracker) String() string {
|
2012-02-03 23:13:00 +00:00
|
|
|
ret := _m.ctrl.Call(_m, "String")
|
2011-11-05 12:22:04 +00:00
|
|
|
ret0, _ := ret[0].(string)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2013-02-16 11:29:56 +00:00
|
|
|
func (_mr *_MockTrackerRecorder) String() *gomock.Call {
|
2012-02-03 23:13:00 +00:00
|
|
|
return _mr.mock.ctrl.RecordCall(_mr.mock, "String")
|
2011-11-05 12:22:04 +00:00
|
|
|
}
|