github.com/onosproject/onos-api/go@v0.10.32/onos/e2t/e2/e2_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: go/onos/e2t/e2/e2.pb.go
     3  
     4  // Package e2 is a generated GoMock package.
     5  package e2
     6  
     7  import (
     8  	context "context"
     9  	reflect "reflect"
    10  
    11  	gomock "github.com/golang/mock/gomock"
    12  	grpc "google.golang.org/grpc"
    13  	metadata "google.golang.org/grpc/metadata"
    14  )
    15  
    16  // MockE2TServiceClient is a mock of E2TServiceClient interface
    17  type MockE2TServiceClient struct {
    18  	ctrl     *gomock.Controller
    19  	recorder *MockE2TServiceClientMockRecorder
    20  }
    21  
    22  // MockE2TServiceClientMockRecorder is the mock recorder for MockE2TServiceClient
    23  type MockE2TServiceClientMockRecorder struct {
    24  	mock *MockE2TServiceClient
    25  }
    26  
    27  // NewMockE2TServiceClient creates a new mock instance
    28  func NewMockE2TServiceClient(ctrl *gomock.Controller) *MockE2TServiceClient {
    29  	mock := &MockE2TServiceClient{ctrl: ctrl}
    30  	mock.recorder = &MockE2TServiceClientMockRecorder{mock}
    31  	return mock
    32  }
    33  
    34  // EXPECT returns an object that allows the caller to indicate expected use
    35  func (m *MockE2TServiceClient) EXPECT() *MockE2TServiceClientMockRecorder {
    36  	return m.recorder
    37  }
    38  
    39  // Stream mocks base method
    40  func (m *MockE2TServiceClient) Stream(ctx context.Context, opts ...grpc.CallOption) (E2TService_StreamClient, error) {
    41  	m.ctrl.T.Helper()
    42  	varargs := []interface{}{ctx}
    43  	for _, a := range opts {
    44  		varargs = append(varargs, a)
    45  	}
    46  	ret := m.ctrl.Call(m, "Stream", varargs...)
    47  	ret0, _ := ret[0].(E2TService_StreamClient)
    48  	ret1, _ := ret[1].(error)
    49  	return ret0, ret1
    50  }
    51  
    52  // Stream indicates an expected call of Stream
    53  func (mr *MockE2TServiceClientMockRecorder) Stream(ctx interface{}, opts ...interface{}) *gomock.Call {
    54  	mr.mock.ctrl.T.Helper()
    55  	varargs := append([]interface{}{ctx}, opts...)
    56  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stream", reflect.TypeOf((*MockE2TServiceClient)(nil).Stream), varargs...)
    57  }
    58  
    59  // MockE2TService_StreamClient is a mock of E2TService_StreamClient interface
    60  type MockE2TService_StreamClient struct {
    61  	ctrl     *gomock.Controller
    62  	recorder *MockE2TService_StreamClientMockRecorder
    63  }
    64  
    65  // MockE2TService_StreamClientMockRecorder is the mock recorder for MockE2TService_StreamClient
    66  type MockE2TService_StreamClientMockRecorder struct {
    67  	mock *MockE2TService_StreamClient
    68  }
    69  
    70  // NewMockE2TService_StreamClient creates a new mock instance
    71  func NewMockE2TService_StreamClient(ctrl *gomock.Controller) *MockE2TService_StreamClient {
    72  	mock := &MockE2TService_StreamClient{ctrl: ctrl}
    73  	mock.recorder = &MockE2TService_StreamClientMockRecorder{mock}
    74  	return mock
    75  }
    76  
    77  // EXPECT returns an object that allows the caller to indicate expected use
    78  func (m *MockE2TService_StreamClient) EXPECT() *MockE2TService_StreamClientMockRecorder {
    79  	return m.recorder
    80  }
    81  
    82  // Send mocks base method
    83  func (m *MockE2TService_StreamClient) Send(arg0 *StreamRequest) error {
    84  	m.ctrl.T.Helper()
    85  	ret := m.ctrl.Call(m, "Send", arg0)
    86  	ret0, _ := ret[0].(error)
    87  	return ret0
    88  }
    89  
    90  // Send indicates an expected call of Send
    91  func (mr *MockE2TService_StreamClientMockRecorder) Send(arg0 interface{}) *gomock.Call {
    92  	mr.mock.ctrl.T.Helper()
    93  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockE2TService_StreamClient)(nil).Send), arg0)
    94  }
    95  
    96  // Recv mocks base method
    97  func (m *MockE2TService_StreamClient) Recv() (*StreamResponse, error) {
    98  	m.ctrl.T.Helper()
    99  	ret := m.ctrl.Call(m, "Recv")
   100  	ret0, _ := ret[0].(*StreamResponse)
   101  	ret1, _ := ret[1].(error)
   102  	return ret0, ret1
   103  }
   104  
   105  // Recv indicates an expected call of Recv
   106  func (mr *MockE2TService_StreamClientMockRecorder) Recv() *gomock.Call {
   107  	mr.mock.ctrl.T.Helper()
   108  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Recv", reflect.TypeOf((*MockE2TService_StreamClient)(nil).Recv))
   109  }
   110  
   111  // Header mocks base method
   112  func (m *MockE2TService_StreamClient) Header() (metadata.MD, error) {
   113  	m.ctrl.T.Helper()
   114  	ret := m.ctrl.Call(m, "Header")
   115  	ret0, _ := ret[0].(metadata.MD)
   116  	ret1, _ := ret[1].(error)
   117  	return ret0, ret1
   118  }
   119  
   120  // Header indicates an expected call of Header
   121  func (mr *MockE2TService_StreamClientMockRecorder) Header() *gomock.Call {
   122  	mr.mock.ctrl.T.Helper()
   123  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Header", reflect.TypeOf((*MockE2TService_StreamClient)(nil).Header))
   124  }
   125  
   126  // Trailer mocks base method
   127  func (m *MockE2TService_StreamClient) Trailer() metadata.MD {
   128  	m.ctrl.T.Helper()
   129  	ret := m.ctrl.Call(m, "Trailer")
   130  	ret0, _ := ret[0].(metadata.MD)
   131  	return ret0
   132  }
   133  
   134  // Trailer indicates an expected call of Trailer
   135  func (mr *MockE2TService_StreamClientMockRecorder) Trailer() *gomock.Call {
   136  	mr.mock.ctrl.T.Helper()
   137  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Trailer", reflect.TypeOf((*MockE2TService_StreamClient)(nil).Trailer))
   138  }
   139  
   140  // CloseSend mocks base method
   141  func (m *MockE2TService_StreamClient) CloseSend() error {
   142  	m.ctrl.T.Helper()
   143  	ret := m.ctrl.Call(m, "CloseSend")
   144  	ret0, _ := ret[0].(error)
   145  	return ret0
   146  }
   147  
   148  // CloseSend indicates an expected call of CloseSend
   149  func (mr *MockE2TService_StreamClientMockRecorder) CloseSend() *gomock.Call {
   150  	mr.mock.ctrl.T.Helper()
   151  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloseSend", reflect.TypeOf((*MockE2TService_StreamClient)(nil).CloseSend))
   152  }
   153  
   154  // Context mocks base method
   155  func (m *MockE2TService_StreamClient) Context() context.Context {
   156  	m.ctrl.T.Helper()
   157  	ret := m.ctrl.Call(m, "Context")
   158  	ret0, _ := ret[0].(context.Context)
   159  	return ret0
   160  }
   161  
   162  // Context indicates an expected call of Context
   163  func (mr *MockE2TService_StreamClientMockRecorder) Context() *gomock.Call {
   164  	mr.mock.ctrl.T.Helper()
   165  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Context", reflect.TypeOf((*MockE2TService_StreamClient)(nil).Context))
   166  }
   167  
   168  // SendMsg mocks base method
   169  func (m_2 *MockE2TService_StreamClient) SendMsg(m interface{}) error {
   170  	m_2.ctrl.T.Helper()
   171  	ret := m_2.ctrl.Call(m_2, "SendMsg", m)
   172  	ret0, _ := ret[0].(error)
   173  	return ret0
   174  }
   175  
   176  // SendMsg indicates an expected call of SendMsg
   177  func (mr *MockE2TService_StreamClientMockRecorder) SendMsg(m interface{}) *gomock.Call {
   178  	mr.mock.ctrl.T.Helper()
   179  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMsg", reflect.TypeOf((*MockE2TService_StreamClient)(nil).SendMsg), m)
   180  }
   181  
   182  // RecvMsg mocks base method
   183  func (m_2 *MockE2TService_StreamClient) RecvMsg(m interface{}) error {
   184  	m_2.ctrl.T.Helper()
   185  	ret := m_2.ctrl.Call(m_2, "RecvMsg", m)
   186  	ret0, _ := ret[0].(error)
   187  	return ret0
   188  }
   189  
   190  // RecvMsg indicates an expected call of RecvMsg
   191  func (mr *MockE2TService_StreamClientMockRecorder) RecvMsg(m interface{}) *gomock.Call {
   192  	mr.mock.ctrl.T.Helper()
   193  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecvMsg", reflect.TypeOf((*MockE2TService_StreamClient)(nil).RecvMsg), m)
   194  }
   195  
   196  // MockE2TServiceServer is a mock of E2TServiceServer interface
   197  type MockE2TServiceServer struct {
   198  	ctrl     *gomock.Controller
   199  	recorder *MockE2TServiceServerMockRecorder
   200  }
   201  
   202  // MockE2TServiceServerMockRecorder is the mock recorder for MockE2TServiceServer
   203  type MockE2TServiceServerMockRecorder struct {
   204  	mock *MockE2TServiceServer
   205  }
   206  
   207  // NewMockE2TServiceServer creates a new mock instance
   208  func NewMockE2TServiceServer(ctrl *gomock.Controller) *MockE2TServiceServer {
   209  	mock := &MockE2TServiceServer{ctrl: ctrl}
   210  	mock.recorder = &MockE2TServiceServerMockRecorder{mock}
   211  	return mock
   212  }
   213  
   214  // EXPECT returns an object that allows the caller to indicate expected use
   215  func (m *MockE2TServiceServer) EXPECT() *MockE2TServiceServerMockRecorder {
   216  	return m.recorder
   217  }
   218  
   219  // Stream mocks base method
   220  func (m *MockE2TServiceServer) Stream(arg0 E2TService_StreamServer) error {
   221  	m.ctrl.T.Helper()
   222  	ret := m.ctrl.Call(m, "Stream", arg0)
   223  	ret0, _ := ret[0].(error)
   224  	return ret0
   225  }
   226  
   227  // Stream indicates an expected call of Stream
   228  func (mr *MockE2TServiceServerMockRecorder) Stream(arg0 interface{}) *gomock.Call {
   229  	mr.mock.ctrl.T.Helper()
   230  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stream", reflect.TypeOf((*MockE2TServiceServer)(nil).Stream), arg0)
   231  }
   232  
   233  // MockE2TService_StreamServer is a mock of E2TService_StreamServer interface
   234  type MockE2TService_StreamServer struct {
   235  	ctrl     *gomock.Controller
   236  	recorder *MockE2TService_StreamServerMockRecorder
   237  }
   238  
   239  // MockE2TService_StreamServerMockRecorder is the mock recorder for MockE2TService_StreamServer
   240  type MockE2TService_StreamServerMockRecorder struct {
   241  	mock *MockE2TService_StreamServer
   242  }
   243  
   244  // NewMockE2TService_StreamServer creates a new mock instance
   245  func NewMockE2TService_StreamServer(ctrl *gomock.Controller) *MockE2TService_StreamServer {
   246  	mock := &MockE2TService_StreamServer{ctrl: ctrl}
   247  	mock.recorder = &MockE2TService_StreamServerMockRecorder{mock}
   248  	return mock
   249  }
   250  
   251  // EXPECT returns an object that allows the caller to indicate expected use
   252  func (m *MockE2TService_StreamServer) EXPECT() *MockE2TService_StreamServerMockRecorder {
   253  	return m.recorder
   254  }
   255  
   256  // Send mocks base method
   257  func (m *MockE2TService_StreamServer) Send(arg0 *StreamResponse) error {
   258  	m.ctrl.T.Helper()
   259  	ret := m.ctrl.Call(m, "Send", arg0)
   260  	ret0, _ := ret[0].(error)
   261  	return ret0
   262  }
   263  
   264  // Send indicates an expected call of Send
   265  func (mr *MockE2TService_StreamServerMockRecorder) Send(arg0 interface{}) *gomock.Call {
   266  	mr.mock.ctrl.T.Helper()
   267  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockE2TService_StreamServer)(nil).Send), arg0)
   268  }
   269  
   270  // Recv mocks base method
   271  func (m *MockE2TService_StreamServer) Recv() (*StreamRequest, error) {
   272  	m.ctrl.T.Helper()
   273  	ret := m.ctrl.Call(m, "Recv")
   274  	ret0, _ := ret[0].(*StreamRequest)
   275  	ret1, _ := ret[1].(error)
   276  	return ret0, ret1
   277  }
   278  
   279  // Recv indicates an expected call of Recv
   280  func (mr *MockE2TService_StreamServerMockRecorder) Recv() *gomock.Call {
   281  	mr.mock.ctrl.T.Helper()
   282  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Recv", reflect.TypeOf((*MockE2TService_StreamServer)(nil).Recv))
   283  }
   284  
   285  // SetHeader mocks base method
   286  func (m *MockE2TService_StreamServer) SetHeader(arg0 metadata.MD) error {
   287  	m.ctrl.T.Helper()
   288  	ret := m.ctrl.Call(m, "SetHeader", arg0)
   289  	ret0, _ := ret[0].(error)
   290  	return ret0
   291  }
   292  
   293  // SetHeader indicates an expected call of SetHeader
   294  func (mr *MockE2TService_StreamServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call {
   295  	mr.mock.ctrl.T.Helper()
   296  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetHeader", reflect.TypeOf((*MockE2TService_StreamServer)(nil).SetHeader), arg0)
   297  }
   298  
   299  // SendHeader mocks base method
   300  func (m *MockE2TService_StreamServer) SendHeader(arg0 metadata.MD) error {
   301  	m.ctrl.T.Helper()
   302  	ret := m.ctrl.Call(m, "SendHeader", arg0)
   303  	ret0, _ := ret[0].(error)
   304  	return ret0
   305  }
   306  
   307  // SendHeader indicates an expected call of SendHeader
   308  func (mr *MockE2TService_StreamServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call {
   309  	mr.mock.ctrl.T.Helper()
   310  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendHeader", reflect.TypeOf((*MockE2TService_StreamServer)(nil).SendHeader), arg0)
   311  }
   312  
   313  // SetTrailer mocks base method
   314  func (m *MockE2TService_StreamServer) SetTrailer(arg0 metadata.MD) {
   315  	m.ctrl.T.Helper()
   316  	m.ctrl.Call(m, "SetTrailer", arg0)
   317  }
   318  
   319  // SetTrailer indicates an expected call of SetTrailer
   320  func (mr *MockE2TService_StreamServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call {
   321  	mr.mock.ctrl.T.Helper()
   322  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTrailer", reflect.TypeOf((*MockE2TService_StreamServer)(nil).SetTrailer), arg0)
   323  }
   324  
   325  // Context mocks base method
   326  func (m *MockE2TService_StreamServer) Context() context.Context {
   327  	m.ctrl.T.Helper()
   328  	ret := m.ctrl.Call(m, "Context")
   329  	ret0, _ := ret[0].(context.Context)
   330  	return ret0
   331  }
   332  
   333  // Context indicates an expected call of Context
   334  func (mr *MockE2TService_StreamServerMockRecorder) Context() *gomock.Call {
   335  	mr.mock.ctrl.T.Helper()
   336  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Context", reflect.TypeOf((*MockE2TService_StreamServer)(nil).Context))
   337  }
   338  
   339  // SendMsg mocks base method
   340  func (m_2 *MockE2TService_StreamServer) SendMsg(m interface{}) error {
   341  	m_2.ctrl.T.Helper()
   342  	ret := m_2.ctrl.Call(m_2, "SendMsg", m)
   343  	ret0, _ := ret[0].(error)
   344  	return ret0
   345  }
   346  
   347  // SendMsg indicates an expected call of SendMsg
   348  func (mr *MockE2TService_StreamServerMockRecorder) SendMsg(m interface{}) *gomock.Call {
   349  	mr.mock.ctrl.T.Helper()
   350  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMsg", reflect.TypeOf((*MockE2TService_StreamServer)(nil).SendMsg), m)
   351  }
   352  
   353  // RecvMsg mocks base method
   354  func (m_2 *MockE2TService_StreamServer) RecvMsg(m interface{}) error {
   355  	m_2.ctrl.T.Helper()
   356  	ret := m_2.ctrl.Call(m_2, "RecvMsg", m)
   357  	ret0, _ := ret[0].(error)
   358  	return ret0
   359  }
   360  
   361  // RecvMsg indicates an expected call of RecvMsg
   362  func (mr *MockE2TService_StreamServerMockRecorder) RecvMsg(m interface{}) *gomock.Call {
   363  	mr.mock.ctrl.T.Helper()
   364  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecvMsg", reflect.TypeOf((*MockE2TService_StreamServer)(nil).RecvMsg), m)
   365  }