github.com/eagleql/xray-core@v1.4.4/testing/mocks/outbound.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/eagleql/xray-core/features/outbound (interfaces: Manager,HandlerSelector)
     3  
     4  // Package mocks is a generated GoMock package.
     5  package mocks
     6  
     7  import (
     8  	context "context"
     9  	outbound "github.com/eagleql/xray-core/features/outbound"
    10  	gomock "github.com/golang/mock/gomock"
    11  	reflect "reflect"
    12  )
    13  
    14  // OutboundManager is a mock of Manager interface
    15  type OutboundManager struct {
    16  	ctrl     *gomock.Controller
    17  	recorder *OutboundManagerMockRecorder
    18  }
    19  
    20  // OutboundManagerMockRecorder is the mock recorder for OutboundManager
    21  type OutboundManagerMockRecorder struct {
    22  	mock *OutboundManager
    23  }
    24  
    25  // NewOutboundManager creates a new mock instance
    26  func NewOutboundManager(ctrl *gomock.Controller) *OutboundManager {
    27  	mock := &OutboundManager{ctrl: ctrl}
    28  	mock.recorder = &OutboundManagerMockRecorder{mock}
    29  	return mock
    30  }
    31  
    32  // EXPECT returns an object that allows the caller to indicate expected use
    33  func (m *OutboundManager) EXPECT() *OutboundManagerMockRecorder {
    34  	return m.recorder
    35  }
    36  
    37  // AddHandler mocks base method
    38  func (m *OutboundManager) AddHandler(arg0 context.Context, arg1 outbound.Handler) error {
    39  	m.ctrl.T.Helper()
    40  	ret := m.ctrl.Call(m, "AddHandler", arg0, arg1)
    41  	ret0, _ := ret[0].(error)
    42  	return ret0
    43  }
    44  
    45  // AddHandler indicates an expected call of AddHandler
    46  func (mr *OutboundManagerMockRecorder) AddHandler(arg0, arg1 interface{}) *gomock.Call {
    47  	mr.mock.ctrl.T.Helper()
    48  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddHandler", reflect.TypeOf((*OutboundManager)(nil).AddHandler), arg0, arg1)
    49  }
    50  
    51  // Close mocks base method
    52  func (m *OutboundManager) Close() error {
    53  	m.ctrl.T.Helper()
    54  	ret := m.ctrl.Call(m, "Close")
    55  	ret0, _ := ret[0].(error)
    56  	return ret0
    57  }
    58  
    59  // Close indicates an expected call of Close
    60  func (mr *OutboundManagerMockRecorder) Close() *gomock.Call {
    61  	mr.mock.ctrl.T.Helper()
    62  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*OutboundManager)(nil).Close))
    63  }
    64  
    65  // GetDefaultHandler mocks base method
    66  func (m *OutboundManager) GetDefaultHandler() outbound.Handler {
    67  	m.ctrl.T.Helper()
    68  	ret := m.ctrl.Call(m, "GetDefaultHandler")
    69  	ret0, _ := ret[0].(outbound.Handler)
    70  	return ret0
    71  }
    72  
    73  // GetDefaultHandler indicates an expected call of GetDefaultHandler
    74  func (mr *OutboundManagerMockRecorder) GetDefaultHandler() *gomock.Call {
    75  	mr.mock.ctrl.T.Helper()
    76  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDefaultHandler", reflect.TypeOf((*OutboundManager)(nil).GetDefaultHandler))
    77  }
    78  
    79  // GetHandler mocks base method
    80  func (m *OutboundManager) GetHandler(arg0 string) outbound.Handler {
    81  	m.ctrl.T.Helper()
    82  	ret := m.ctrl.Call(m, "GetHandler", arg0)
    83  	ret0, _ := ret[0].(outbound.Handler)
    84  	return ret0
    85  }
    86  
    87  // GetHandler indicates an expected call of GetHandler
    88  func (mr *OutboundManagerMockRecorder) GetHandler(arg0 interface{}) *gomock.Call {
    89  	mr.mock.ctrl.T.Helper()
    90  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHandler", reflect.TypeOf((*OutboundManager)(nil).GetHandler), arg0)
    91  }
    92  
    93  // RemoveHandler mocks base method
    94  func (m *OutboundManager) RemoveHandler(arg0 context.Context, arg1 string) error {
    95  	m.ctrl.T.Helper()
    96  	ret := m.ctrl.Call(m, "RemoveHandler", arg0, arg1)
    97  	ret0, _ := ret[0].(error)
    98  	return ret0
    99  }
   100  
   101  // RemoveHandler indicates an expected call of RemoveHandler
   102  func (mr *OutboundManagerMockRecorder) RemoveHandler(arg0, arg1 interface{}) *gomock.Call {
   103  	mr.mock.ctrl.T.Helper()
   104  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveHandler", reflect.TypeOf((*OutboundManager)(nil).RemoveHandler), arg0, arg1)
   105  }
   106  
   107  // Start mocks base method
   108  func (m *OutboundManager) Start() error {
   109  	m.ctrl.T.Helper()
   110  	ret := m.ctrl.Call(m, "Start")
   111  	ret0, _ := ret[0].(error)
   112  	return ret0
   113  }
   114  
   115  // Start indicates an expected call of Start
   116  func (mr *OutboundManagerMockRecorder) Start() *gomock.Call {
   117  	mr.mock.ctrl.T.Helper()
   118  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*OutboundManager)(nil).Start))
   119  }
   120  
   121  // Type mocks base method
   122  func (m *OutboundManager) Type() interface{} {
   123  	m.ctrl.T.Helper()
   124  	ret := m.ctrl.Call(m, "Type")
   125  	ret0, _ := ret[0].(interface{})
   126  	return ret0
   127  }
   128  
   129  // Type indicates an expected call of Type
   130  func (mr *OutboundManagerMockRecorder) Type() *gomock.Call {
   131  	mr.mock.ctrl.T.Helper()
   132  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Type", reflect.TypeOf((*OutboundManager)(nil).Type))
   133  }
   134  
   135  // OutboundHandlerSelector is a mock of HandlerSelector interface
   136  type OutboundHandlerSelector struct {
   137  	ctrl     *gomock.Controller
   138  	recorder *OutboundHandlerSelectorMockRecorder
   139  }
   140  
   141  // OutboundHandlerSelectorMockRecorder is the mock recorder for OutboundHandlerSelector
   142  type OutboundHandlerSelectorMockRecorder struct {
   143  	mock *OutboundHandlerSelector
   144  }
   145  
   146  // NewOutboundHandlerSelector creates a new mock instance
   147  func NewOutboundHandlerSelector(ctrl *gomock.Controller) *OutboundHandlerSelector {
   148  	mock := &OutboundHandlerSelector{ctrl: ctrl}
   149  	mock.recorder = &OutboundHandlerSelectorMockRecorder{mock}
   150  	return mock
   151  }
   152  
   153  // EXPECT returns an object that allows the caller to indicate expected use
   154  func (m *OutboundHandlerSelector) EXPECT() *OutboundHandlerSelectorMockRecorder {
   155  	return m.recorder
   156  }
   157  
   158  // Select mocks base method
   159  func (m *OutboundHandlerSelector) Select(arg0 []string) []string {
   160  	m.ctrl.T.Helper()
   161  	ret := m.ctrl.Call(m, "Select", arg0)
   162  	ret0, _ := ret[0].([]string)
   163  	return ret0
   164  }
   165  
   166  // Select indicates an expected call of Select
   167  func (mr *OutboundHandlerSelectorMockRecorder) Select(arg0 interface{}) *gomock.Call {
   168  	mr.mock.ctrl.T.Helper()
   169  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Select", reflect.TypeOf((*OutboundHandlerSelector)(nil).Select), arg0)
   170  }