github.com/aergoio/aergo@v1.3.1/p2p/p2pmock/mock_actorcontext.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/aergoio/aergo-actor/actor (interfaces: Context)
     3  
     4  // package p2pmock is a generated GoMock package.
     5  package p2pmock
     6  
     7  import (
     8  	actor "github.com/aergoio/aergo-actor/actor"
     9  	gomock "github.com/golang/mock/gomock"
    10  	reflect "reflect"
    11  	time "time"
    12  )
    13  
    14  // MockContext is a mock of Context interface
    15  type MockContext struct {
    16  	ctrl     *gomock.Controller
    17  	recorder *MockContextMockRecorder
    18  }
    19  
    20  // MockContextMockRecorder is the mock recorder for MockContext
    21  type MockContextMockRecorder struct {
    22  	mock *MockContext
    23  }
    24  
    25  // NewMockContext creates a new mock instance
    26  func NewMockContext(ctrl *gomock.Controller) *MockContext {
    27  	mock := &MockContext{ctrl: ctrl}
    28  	mock.recorder = &MockContextMockRecorder{mock}
    29  	return mock
    30  }
    31  
    32  // EXPECT returns an object that allows the caller to indicate expected use
    33  func (m *MockContext) EXPECT() *MockContextMockRecorder {
    34  	return m.recorder
    35  }
    36  
    37  // Actor mocks base method
    38  func (m *MockContext) Actor() actor.Actor {
    39  	m.ctrl.T.Helper()
    40  	ret := m.ctrl.Call(m, "Actor")
    41  	ret0, _ := ret[0].(actor.Actor)
    42  	return ret0
    43  }
    44  
    45  // Actor indicates an expected call of Actor
    46  func (mr *MockContextMockRecorder) Actor() *gomock.Call {
    47  	mr.mock.ctrl.T.Helper()
    48  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Actor", reflect.TypeOf((*MockContext)(nil).Actor))
    49  }
    50  
    51  // AwaitFuture mocks base method
    52  func (m *MockContext) AwaitFuture(arg0 *actor.Future, arg1 func(interface{}, error)) {
    53  	m.ctrl.T.Helper()
    54  	m.ctrl.Call(m, "AwaitFuture", arg0, arg1)
    55  }
    56  
    57  // AwaitFuture indicates an expected call of AwaitFuture
    58  func (mr *MockContextMockRecorder) AwaitFuture(arg0, arg1 interface{}) *gomock.Call {
    59  	mr.mock.ctrl.T.Helper()
    60  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AwaitFuture", reflect.TypeOf((*MockContext)(nil).AwaitFuture), arg0, arg1)
    61  }
    62  
    63  // Children mocks base method
    64  func (m *MockContext) Children() []*actor.PID {
    65  	m.ctrl.T.Helper()
    66  	ret := m.ctrl.Call(m, "Children")
    67  	ret0, _ := ret[0].([]*actor.PID)
    68  	return ret0
    69  }
    70  
    71  // Children indicates an expected call of Children
    72  func (mr *MockContextMockRecorder) Children() *gomock.Call {
    73  	mr.mock.ctrl.T.Helper()
    74  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Children", reflect.TypeOf((*MockContext)(nil).Children))
    75  }
    76  
    77  // Forward mocks base method
    78  func (m *MockContext) Forward(arg0 *actor.PID) {
    79  	m.ctrl.T.Helper()
    80  	m.ctrl.Call(m, "Forward", arg0)
    81  }
    82  
    83  // Forward indicates an expected call of Forward
    84  func (mr *MockContextMockRecorder) Forward(arg0 interface{}) *gomock.Call {
    85  	mr.mock.ctrl.T.Helper()
    86  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Forward", reflect.TypeOf((*MockContext)(nil).Forward), arg0)
    87  }
    88  
    89  // Message mocks base method
    90  func (m *MockContext) Message() interface{} {
    91  	m.ctrl.T.Helper()
    92  	ret := m.ctrl.Call(m, "Message")
    93  	ret0, _ := ret[0].(interface{})
    94  	return ret0
    95  }
    96  
    97  // Message indicates an expected call of Message
    98  func (mr *MockContextMockRecorder) Message() *gomock.Call {
    99  	mr.mock.ctrl.T.Helper()
   100  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Message", reflect.TypeOf((*MockContext)(nil).Message))
   101  }
   102  
   103  // MessageHeader mocks base method
   104  func (m *MockContext) MessageHeader() actor.ReadonlyMessageHeader {
   105  	m.ctrl.T.Helper()
   106  	ret := m.ctrl.Call(m, "MessageHeader")
   107  	ret0, _ := ret[0].(actor.ReadonlyMessageHeader)
   108  	return ret0
   109  }
   110  
   111  // MessageHeader indicates an expected call of MessageHeader
   112  func (mr *MockContextMockRecorder) MessageHeader() *gomock.Call {
   113  	mr.mock.ctrl.T.Helper()
   114  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MessageHeader", reflect.TypeOf((*MockContext)(nil).MessageHeader))
   115  }
   116  
   117  // Parent mocks base method
   118  func (m *MockContext) Parent() *actor.PID {
   119  	m.ctrl.T.Helper()
   120  	ret := m.ctrl.Call(m, "Parent")
   121  	ret0, _ := ret[0].(*actor.PID)
   122  	return ret0
   123  }
   124  
   125  // Parent indicates an expected call of Parent
   126  func (mr *MockContextMockRecorder) Parent() *gomock.Call {
   127  	mr.mock.ctrl.T.Helper()
   128  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Parent", reflect.TypeOf((*MockContext)(nil).Parent))
   129  }
   130  
   131  // PopBehavior mocks base method
   132  func (m *MockContext) PopBehavior() {
   133  	m.ctrl.T.Helper()
   134  	m.ctrl.Call(m, "PopBehavior")
   135  }
   136  
   137  // PopBehavior indicates an expected call of PopBehavior
   138  func (mr *MockContextMockRecorder) PopBehavior() *gomock.Call {
   139  	mr.mock.ctrl.T.Helper()
   140  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PopBehavior", reflect.TypeOf((*MockContext)(nil).PopBehavior))
   141  }
   142  
   143  // PushBehavior mocks base method
   144  func (m *MockContext) PushBehavior(arg0 actor.ActorFunc) {
   145  	m.ctrl.T.Helper()
   146  	m.ctrl.Call(m, "PushBehavior", arg0)
   147  }
   148  
   149  // PushBehavior indicates an expected call of PushBehavior
   150  func (mr *MockContextMockRecorder) PushBehavior(arg0 interface{}) *gomock.Call {
   151  	mr.mock.ctrl.T.Helper()
   152  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PushBehavior", reflect.TypeOf((*MockContext)(nil).PushBehavior), arg0)
   153  }
   154  
   155  // ReceiveTimeout mocks base method
   156  func (m *MockContext) ReceiveTimeout() time.Duration {
   157  	m.ctrl.T.Helper()
   158  	ret := m.ctrl.Call(m, "ReceiveTimeout")
   159  	ret0, _ := ret[0].(time.Duration)
   160  	return ret0
   161  }
   162  
   163  // ReceiveTimeout indicates an expected call of ReceiveTimeout
   164  func (mr *MockContextMockRecorder) ReceiveTimeout() *gomock.Call {
   165  	mr.mock.ctrl.T.Helper()
   166  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReceiveTimeout", reflect.TypeOf((*MockContext)(nil).ReceiveTimeout))
   167  }
   168  
   169  // Request mocks base method
   170  func (m *MockContext) Request(arg0 *actor.PID, arg1 interface{}) {
   171  	m.ctrl.T.Helper()
   172  	m.ctrl.Call(m, "Request", arg0, arg1)
   173  }
   174  
   175  // Request indicates an expected call of Request
   176  func (mr *MockContextMockRecorder) Request(arg0, arg1 interface{}) *gomock.Call {
   177  	mr.mock.ctrl.T.Helper()
   178  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Request", reflect.TypeOf((*MockContext)(nil).Request), arg0, arg1)
   179  }
   180  
   181  // RequestFuture mocks base method
   182  func (m *MockContext) RequestFuture(arg0 *actor.PID, arg1 interface{}, arg2 time.Duration) *actor.Future {
   183  	m.ctrl.T.Helper()
   184  	ret := m.ctrl.Call(m, "RequestFuture", arg0, arg1, arg2)
   185  	ret0, _ := ret[0].(*actor.Future)
   186  	return ret0
   187  }
   188  
   189  // RequestFuture indicates an expected call of RequestFuture
   190  func (mr *MockContextMockRecorder) RequestFuture(arg0, arg1, arg2 interface{}) *gomock.Call {
   191  	mr.mock.ctrl.T.Helper()
   192  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestFuture", reflect.TypeOf((*MockContext)(nil).RequestFuture), arg0, arg1, arg2)
   193  }
   194  
   195  // Respond mocks base method
   196  func (m *MockContext) Respond(arg0 interface{}) {
   197  	m.ctrl.T.Helper()
   198  	m.ctrl.Call(m, "Respond", arg0)
   199  }
   200  
   201  // Respond indicates an expected call of Respond
   202  func (mr *MockContextMockRecorder) Respond(arg0 interface{}) *gomock.Call {
   203  	mr.mock.ctrl.T.Helper()
   204  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Respond", reflect.TypeOf((*MockContext)(nil).Respond), arg0)
   205  }
   206  
   207  // Self mocks base method
   208  func (m *MockContext) Self() *actor.PID {
   209  	m.ctrl.T.Helper()
   210  	ret := m.ctrl.Call(m, "Self")
   211  	ret0, _ := ret[0].(*actor.PID)
   212  	return ret0
   213  }
   214  
   215  // Self indicates an expected call of Self
   216  func (mr *MockContextMockRecorder) Self() *gomock.Call {
   217  	mr.mock.ctrl.T.Helper()
   218  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Self", reflect.TypeOf((*MockContext)(nil).Self))
   219  }
   220  
   221  // Sender mocks base method
   222  func (m *MockContext) Sender() *actor.PID {
   223  	m.ctrl.T.Helper()
   224  	ret := m.ctrl.Call(m, "Sender")
   225  	ret0, _ := ret[0].(*actor.PID)
   226  	return ret0
   227  }
   228  
   229  // Sender indicates an expected call of Sender
   230  func (mr *MockContextMockRecorder) Sender() *gomock.Call {
   231  	mr.mock.ctrl.T.Helper()
   232  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Sender", reflect.TypeOf((*MockContext)(nil).Sender))
   233  }
   234  
   235  // SetBehavior mocks base method
   236  func (m *MockContext) SetBehavior(arg0 actor.ActorFunc) {
   237  	m.ctrl.T.Helper()
   238  	m.ctrl.Call(m, "SetBehavior", arg0)
   239  }
   240  
   241  // SetBehavior indicates an expected call of SetBehavior
   242  func (mr *MockContextMockRecorder) SetBehavior(arg0 interface{}) *gomock.Call {
   243  	mr.mock.ctrl.T.Helper()
   244  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetBehavior", reflect.TypeOf((*MockContext)(nil).SetBehavior), arg0)
   245  }
   246  
   247  // SetReceiveTimeout mocks base method
   248  func (m *MockContext) SetReceiveTimeout(arg0 time.Duration) {
   249  	m.ctrl.T.Helper()
   250  	m.ctrl.Call(m, "SetReceiveTimeout", arg0)
   251  }
   252  
   253  // SetReceiveTimeout indicates an expected call of SetReceiveTimeout
   254  func (mr *MockContextMockRecorder) SetReceiveTimeout(arg0 interface{}) *gomock.Call {
   255  	mr.mock.ctrl.T.Helper()
   256  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetReceiveTimeout", reflect.TypeOf((*MockContext)(nil).SetReceiveTimeout), arg0)
   257  }
   258  
   259  // Spawn mocks base method
   260  func (m *MockContext) Spawn(arg0 *actor.Props) *actor.PID {
   261  	m.ctrl.T.Helper()
   262  	ret := m.ctrl.Call(m, "Spawn", arg0)
   263  	ret0, _ := ret[0].(*actor.PID)
   264  	return ret0
   265  }
   266  
   267  // Spawn indicates an expected call of Spawn
   268  func (mr *MockContextMockRecorder) Spawn(arg0 interface{}) *gomock.Call {
   269  	mr.mock.ctrl.T.Helper()
   270  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Spawn", reflect.TypeOf((*MockContext)(nil).Spawn), arg0)
   271  }
   272  
   273  // SpawnNamed mocks base method
   274  func (m *MockContext) SpawnNamed(arg0 *actor.Props, arg1 string) (*actor.PID, error) {
   275  	m.ctrl.T.Helper()
   276  	ret := m.ctrl.Call(m, "SpawnNamed", arg0, arg1)
   277  	ret0, _ := ret[0].(*actor.PID)
   278  	ret1, _ := ret[1].(error)
   279  	return ret0, ret1
   280  }
   281  
   282  // SpawnNamed indicates an expected call of SpawnNamed
   283  func (mr *MockContextMockRecorder) SpawnNamed(arg0, arg1 interface{}) *gomock.Call {
   284  	mr.mock.ctrl.T.Helper()
   285  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SpawnNamed", reflect.TypeOf((*MockContext)(nil).SpawnNamed), arg0, arg1)
   286  }
   287  
   288  // SpawnPrefix mocks base method
   289  func (m *MockContext) SpawnPrefix(arg0 *actor.Props, arg1 string) *actor.PID {
   290  	m.ctrl.T.Helper()
   291  	ret := m.ctrl.Call(m, "SpawnPrefix", arg0, arg1)
   292  	ret0, _ := ret[0].(*actor.PID)
   293  	return ret0
   294  }
   295  
   296  // SpawnPrefix indicates an expected call of SpawnPrefix
   297  func (mr *MockContextMockRecorder) SpawnPrefix(arg0, arg1 interface{}) *gomock.Call {
   298  	mr.mock.ctrl.T.Helper()
   299  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SpawnPrefix", reflect.TypeOf((*MockContext)(nil).SpawnPrefix), arg0, arg1)
   300  }
   301  
   302  // Stash mocks base method
   303  func (m *MockContext) Stash() {
   304  	m.ctrl.T.Helper()
   305  	m.ctrl.Call(m, "Stash")
   306  }
   307  
   308  // Stash indicates an expected call of Stash
   309  func (mr *MockContextMockRecorder) Stash() *gomock.Call {
   310  	mr.mock.ctrl.T.Helper()
   311  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stash", reflect.TypeOf((*MockContext)(nil).Stash))
   312  }
   313  
   314  // Tell mocks base method
   315  func (m *MockContext) Tell(arg0 *actor.PID, arg1 interface{}) {
   316  	m.ctrl.T.Helper()
   317  	m.ctrl.Call(m, "Tell", arg0, arg1)
   318  }
   319  
   320  // Tell indicates an expected call of Tell
   321  func (mr *MockContextMockRecorder) Tell(arg0, arg1 interface{}) *gomock.Call {
   322  	mr.mock.ctrl.T.Helper()
   323  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Tell", reflect.TypeOf((*MockContext)(nil).Tell), arg0, arg1)
   324  }
   325  
   326  // Unwatch mocks base method
   327  func (m *MockContext) Unwatch(arg0 *actor.PID) {
   328  	m.ctrl.T.Helper()
   329  	m.ctrl.Call(m, "Unwatch", arg0)
   330  }
   331  
   332  // Unwatch indicates an expected call of Unwatch
   333  func (mr *MockContextMockRecorder) Unwatch(arg0 interface{}) *gomock.Call {
   334  	mr.mock.ctrl.T.Helper()
   335  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Unwatch", reflect.TypeOf((*MockContext)(nil).Unwatch), arg0)
   336  }
   337  
   338  // Watch mocks base method
   339  func (m *MockContext) Watch(arg0 *actor.PID) {
   340  	m.ctrl.T.Helper()
   341  	m.ctrl.Call(m, "Watch", arg0)
   342  }
   343  
   344  // Watch indicates an expected call of Watch
   345  func (mr *MockContextMockRecorder) Watch(arg0 interface{}) *gomock.Call {
   346  	mr.mock.ctrl.T.Helper()
   347  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockContext)(nil).Watch), arg0)
   348  }