github.com/xraypb/xray-core@v1.6.6/testing/mocks/log.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/xraypb/xray-core/common/log (interfaces: Handler)
     3  
     4  // Package mocks is a generated GoMock package.
     5  package mocks
     6  
     7  import (
     8  	reflect "reflect"
     9  
    10  	gomock "github.com/golang/mock/gomock"
    11  	log "github.com/xraypb/xray-core/common/log"
    12  )
    13  
    14  // LogHandler is a mock of Handler interface
    15  type LogHandler struct {
    16  	ctrl     *gomock.Controller
    17  	recorder *LogHandlerMockRecorder
    18  }
    19  
    20  // LogHandlerMockRecorder is the mock recorder for LogHandler
    21  type LogHandlerMockRecorder struct {
    22  	mock *LogHandler
    23  }
    24  
    25  // NewLogHandler creates a new mock instance
    26  func NewLogHandler(ctrl *gomock.Controller) *LogHandler {
    27  	mock := &LogHandler{ctrl: ctrl}
    28  	mock.recorder = &LogHandlerMockRecorder{mock}
    29  	return mock
    30  }
    31  
    32  // EXPECT returns an object that allows the caller to indicate expected use
    33  func (m *LogHandler) EXPECT() *LogHandlerMockRecorder {
    34  	return m.recorder
    35  }
    36  
    37  // Handle mocks base method
    38  func (m *LogHandler) Handle(arg0 log.Message) {
    39  	m.ctrl.T.Helper()
    40  	m.ctrl.Call(m, "Handle", arg0)
    41  }
    42  
    43  // Handle indicates an expected call of Handle
    44  func (mr *LogHandlerMockRecorder) Handle(arg0 interface{}) *gomock.Call {
    45  	mr.mock.ctrl.T.Helper()
    46  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Handle", reflect.TypeOf((*LogHandler)(nil).Handle), arg0)
    47  }