github.com/cloudwego/kitex@v0.9.0/internal/mocks/remote/trans_pipeline.go (about)

     1  /*
     2   * Copyright 2022 CloudWeGo Authors
     3   *
     4   * Licensed under the Apache License, Version 2.0 (the "License");
     5   * you may not use this file except in compliance with the License.
     6   * You may obtain a copy of the License at
     7   *
     8   *     http://www.apache.org/licenses/LICENSE-2.0
     9   *
    10   * Unless required by applicable law or agreed to in writing, software
    11   * distributed under the License is distributed on an "AS IS" BASIS,
    12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13   * See the License for the specific language governing permissions and
    14   * limitations under the License.
    15  */
    16  
    17  
    18  // Code generated by MockGen. DO NOT EDIT.
    19  // Source: ../../pkg/remote/trans_pipeline.go
    20  
    21  // Package remote is a generated GoMock package.
    22  package remote
    23  
    24  import (
    25  	context "context"
    26  	net "net"
    27  	reflect "reflect"
    28  
    29  	remote "github.com/cloudwego/kitex/pkg/remote"
    30  	gomock "github.com/golang/mock/gomock"
    31  )
    32  
    33  // MockBoundHandler is a mock of BoundHandler interface.
    34  type MockBoundHandler struct {
    35  	ctrl     *gomock.Controller
    36  	recorder *MockBoundHandlerMockRecorder
    37  }
    38  
    39  // MockBoundHandlerMockRecorder is the mock recorder for MockBoundHandler.
    40  type MockBoundHandlerMockRecorder struct {
    41  	mock *MockBoundHandler
    42  }
    43  
    44  // NewMockBoundHandler creates a new mock instance.
    45  func NewMockBoundHandler(ctrl *gomock.Controller) *MockBoundHandler {
    46  	mock := &MockBoundHandler{ctrl: ctrl}
    47  	mock.recorder = &MockBoundHandlerMockRecorder{mock}
    48  	return mock
    49  }
    50  
    51  // EXPECT returns an object that allows the caller to indicate expected use.
    52  func (m *MockBoundHandler) EXPECT() *MockBoundHandlerMockRecorder {
    53  	return m.recorder
    54  }
    55  
    56  // MockOutboundHandler is a mock of OutboundHandler interface.
    57  type MockOutboundHandler struct {
    58  	ctrl     *gomock.Controller
    59  	recorder *MockOutboundHandlerMockRecorder
    60  }
    61  
    62  // MockOutboundHandlerMockRecorder is the mock recorder for MockOutboundHandler.
    63  type MockOutboundHandlerMockRecorder struct {
    64  	mock *MockOutboundHandler
    65  }
    66  
    67  // NewMockOutboundHandler creates a new mock instance.
    68  func NewMockOutboundHandler(ctrl *gomock.Controller) *MockOutboundHandler {
    69  	mock := &MockOutboundHandler{ctrl: ctrl}
    70  	mock.recorder = &MockOutboundHandlerMockRecorder{mock}
    71  	return mock
    72  }
    73  
    74  // EXPECT returns an object that allows the caller to indicate expected use.
    75  func (m *MockOutboundHandler) EXPECT() *MockOutboundHandlerMockRecorder {
    76  	return m.recorder
    77  }
    78  
    79  // Write mocks base method.
    80  func (m *MockOutboundHandler) Write(ctx context.Context, conn net.Conn, send remote.Message) (context.Context, error) {
    81  	m.ctrl.T.Helper()
    82  	ret := m.ctrl.Call(m, "Write", ctx, conn, send)
    83  	ret0, _ := ret[0].(context.Context)
    84  	ret1, _ := ret[1].(error)
    85  	return ret0, ret1
    86  }
    87  
    88  // Write indicates an expected call of Write.
    89  func (mr *MockOutboundHandlerMockRecorder) Write(ctx, conn, send interface{}) *gomock.Call {
    90  	mr.mock.ctrl.T.Helper()
    91  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockOutboundHandler)(nil).Write), ctx, conn, send)
    92  }
    93  
    94  // MockInboundHandler is a mock of InboundHandler interface.
    95  type MockInboundHandler struct {
    96  	ctrl     *gomock.Controller
    97  	recorder *MockInboundHandlerMockRecorder
    98  }
    99  
   100  // MockInboundHandlerMockRecorder is the mock recorder for MockInboundHandler.
   101  type MockInboundHandlerMockRecorder struct {
   102  	mock *MockInboundHandler
   103  }
   104  
   105  // NewMockInboundHandler creates a new mock instance.
   106  func NewMockInboundHandler(ctrl *gomock.Controller) *MockInboundHandler {
   107  	mock := &MockInboundHandler{ctrl: ctrl}
   108  	mock.recorder = &MockInboundHandlerMockRecorder{mock}
   109  	return mock
   110  }
   111  
   112  // EXPECT returns an object that allows the caller to indicate expected use.
   113  func (m *MockInboundHandler) EXPECT() *MockInboundHandlerMockRecorder {
   114  	return m.recorder
   115  }
   116  
   117  // OnActive mocks base method.
   118  func (m *MockInboundHandler) OnActive(ctx context.Context, conn net.Conn) (context.Context, error) {
   119  	m.ctrl.T.Helper()
   120  	ret := m.ctrl.Call(m, "OnActive", ctx, conn)
   121  	ret0, _ := ret[0].(context.Context)
   122  	ret1, _ := ret[1].(error)
   123  	return ret0, ret1
   124  }
   125  
   126  // OnActive indicates an expected call of OnActive.
   127  func (mr *MockInboundHandlerMockRecorder) OnActive(ctx, conn interface{}) *gomock.Call {
   128  	mr.mock.ctrl.T.Helper()
   129  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnActive", reflect.TypeOf((*MockInboundHandler)(nil).OnActive), ctx, conn)
   130  }
   131  
   132  // OnInactive mocks base method.
   133  func (m *MockInboundHandler) OnInactive(ctx context.Context, conn net.Conn) context.Context {
   134  	m.ctrl.T.Helper()
   135  	ret := m.ctrl.Call(m, "OnInactive", ctx, conn)
   136  	ret0, _ := ret[0].(context.Context)
   137  	return ret0
   138  }
   139  
   140  // OnInactive indicates an expected call of OnInactive.
   141  func (mr *MockInboundHandlerMockRecorder) OnInactive(ctx, conn interface{}) *gomock.Call {
   142  	mr.mock.ctrl.T.Helper()
   143  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnInactive", reflect.TypeOf((*MockInboundHandler)(nil).OnInactive), ctx, conn)
   144  }
   145  
   146  // OnMessage mocks base method.
   147  func (m *MockInboundHandler) OnMessage(ctx context.Context, args, result remote.Message) (context.Context, error) {
   148  	m.ctrl.T.Helper()
   149  	ret := m.ctrl.Call(m, "OnMessage", ctx, args, result)
   150  	ret0, _ := ret[0].(context.Context)
   151  	ret1, _ := ret[1].(error)
   152  	return ret0, ret1
   153  }
   154  
   155  // OnMessage indicates an expected call of OnMessage.
   156  func (mr *MockInboundHandlerMockRecorder) OnMessage(ctx, args, result interface{}) *gomock.Call {
   157  	mr.mock.ctrl.T.Helper()
   158  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnMessage", reflect.TypeOf((*MockInboundHandler)(nil).OnMessage), ctx, args, result)
   159  }
   160  
   161  // OnRead mocks base method.
   162  func (m *MockInboundHandler) OnRead(ctx context.Context, conn net.Conn) (context.Context, error) {
   163  	m.ctrl.T.Helper()
   164  	ret := m.ctrl.Call(m, "OnRead", ctx, conn)
   165  	ret0, _ := ret[0].(context.Context)
   166  	ret1, _ := ret[1].(error)
   167  	return ret0, ret1
   168  }
   169  
   170  // OnRead indicates an expected call of OnRead.
   171  func (mr *MockInboundHandlerMockRecorder) OnRead(ctx, conn interface{}) *gomock.Call {
   172  	mr.mock.ctrl.T.Helper()
   173  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnRead", reflect.TypeOf((*MockInboundHandler)(nil).OnRead), ctx, conn)
   174  }
   175  
   176  // MockDuplexBoundHandler is a mock of DuplexBoundHandler interface.
   177  type MockDuplexBoundHandler struct {
   178  	ctrl     *gomock.Controller
   179  	recorder *MockDuplexBoundHandlerMockRecorder
   180  }
   181  
   182  // MockDuplexBoundHandlerMockRecorder is the mock recorder for MockDuplexBoundHandler.
   183  type MockDuplexBoundHandlerMockRecorder struct {
   184  	mock *MockDuplexBoundHandler
   185  }
   186  
   187  // NewMockDuplexBoundHandler creates a new mock instance.
   188  func NewMockDuplexBoundHandler(ctrl *gomock.Controller) *MockDuplexBoundHandler {
   189  	mock := &MockDuplexBoundHandler{ctrl: ctrl}
   190  	mock.recorder = &MockDuplexBoundHandlerMockRecorder{mock}
   191  	return mock
   192  }
   193  
   194  // EXPECT returns an object that allows the caller to indicate expected use.
   195  func (m *MockDuplexBoundHandler) EXPECT() *MockDuplexBoundHandlerMockRecorder {
   196  	return m.recorder
   197  }
   198  
   199  // OnActive mocks base method.
   200  func (m *MockDuplexBoundHandler) OnActive(ctx context.Context, conn net.Conn) (context.Context, error) {
   201  	m.ctrl.T.Helper()
   202  	ret := m.ctrl.Call(m, "OnActive", ctx, conn)
   203  	ret0, _ := ret[0].(context.Context)
   204  	ret1, _ := ret[1].(error)
   205  	return ret0, ret1
   206  }
   207  
   208  // OnActive indicates an expected call of OnActive.
   209  func (mr *MockDuplexBoundHandlerMockRecorder) OnActive(ctx, conn interface{}) *gomock.Call {
   210  	mr.mock.ctrl.T.Helper()
   211  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnActive", reflect.TypeOf((*MockDuplexBoundHandler)(nil).OnActive), ctx, conn)
   212  }
   213  
   214  // OnInactive mocks base method.
   215  func (m *MockDuplexBoundHandler) OnInactive(ctx context.Context, conn net.Conn) context.Context {
   216  	m.ctrl.T.Helper()
   217  	ret := m.ctrl.Call(m, "OnInactive", ctx, conn)
   218  	ret0, _ := ret[0].(context.Context)
   219  	return ret0
   220  }
   221  
   222  // OnInactive indicates an expected call of OnInactive.
   223  func (mr *MockDuplexBoundHandlerMockRecorder) OnInactive(ctx, conn interface{}) *gomock.Call {
   224  	mr.mock.ctrl.T.Helper()
   225  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnInactive", reflect.TypeOf((*MockDuplexBoundHandler)(nil).OnInactive), ctx, conn)
   226  }
   227  
   228  // OnMessage mocks base method.
   229  func (m *MockDuplexBoundHandler) OnMessage(ctx context.Context, args, result remote.Message) (context.Context, error) {
   230  	m.ctrl.T.Helper()
   231  	ret := m.ctrl.Call(m, "OnMessage", ctx, args, result)
   232  	ret0, _ := ret[0].(context.Context)
   233  	ret1, _ := ret[1].(error)
   234  	return ret0, ret1
   235  }
   236  
   237  // OnMessage indicates an expected call of OnMessage.
   238  func (mr *MockDuplexBoundHandlerMockRecorder) OnMessage(ctx, args, result interface{}) *gomock.Call {
   239  	mr.mock.ctrl.T.Helper()
   240  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnMessage", reflect.TypeOf((*MockDuplexBoundHandler)(nil).OnMessage), ctx, args, result)
   241  }
   242  
   243  // OnRead mocks base method.
   244  func (m *MockDuplexBoundHandler) OnRead(ctx context.Context, conn net.Conn) (context.Context, error) {
   245  	m.ctrl.T.Helper()
   246  	ret := m.ctrl.Call(m, "OnRead", ctx, conn)
   247  	ret0, _ := ret[0].(context.Context)
   248  	ret1, _ := ret[1].(error)
   249  	return ret0, ret1
   250  }
   251  
   252  // OnRead indicates an expected call of OnRead.
   253  func (mr *MockDuplexBoundHandlerMockRecorder) OnRead(ctx, conn interface{}) *gomock.Call {
   254  	mr.mock.ctrl.T.Helper()
   255  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnRead", reflect.TypeOf((*MockDuplexBoundHandler)(nil).OnRead), ctx, conn)
   256  }
   257  
   258  // Write mocks base method.
   259  func (m *MockDuplexBoundHandler) Write(ctx context.Context, conn net.Conn, send remote.Message) (context.Context, error) {
   260  	m.ctrl.T.Helper()
   261  	ret := m.ctrl.Call(m, "Write", ctx, conn, send)
   262  	ret0, _ := ret[0].(context.Context)
   263  	ret1, _ := ret[1].(error)
   264  	return ret0, ret1
   265  }
   266  
   267  // Write indicates an expected call of Write.
   268  func (mr *MockDuplexBoundHandlerMockRecorder) Write(ctx, conn, send interface{}) *gomock.Call {
   269  	mr.mock.ctrl.T.Helper()
   270  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockDuplexBoundHandler)(nil).Write), ctx, conn, send)
   271  }