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