1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-21 01:27:03 -05:00
v2fly/testing/mocks/log.go

48 lines
1.3 KiB
Go
Raw Normal View History

2018-12-06 11:37:05 -05:00
// Code generated by MockGen. DO NOT EDIT.
2021-02-16 15:31:50 -05:00
// Source: github.com/v2fly/v2ray-core/v4/common/log (interfaces: Handler)
2018-12-06 11:37:05 -05:00
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
2018-12-06 11:37:05 -05:00
gomock "github.com/golang/mock/gomock"
2021-02-16 15:31:50 -05:00
log "github.com/v2fly/v2ray-core/v4/common/log"
2018-12-06 11:37:05 -05:00
)
// LogHandler is a mock of Handler interface.
2018-12-06 11:37:05 -05:00
type LogHandler struct {
ctrl *gomock.Controller
recorder *LogHandlerMockRecorder
}
// LogHandlerMockRecorder is the mock recorder for LogHandler.
2018-12-06 11:37:05 -05:00
type LogHandlerMockRecorder struct {
mock *LogHandler
}
// NewLogHandler creates a new mock instance.
2018-12-06 11:37:05 -05:00
func NewLogHandler(ctrl *gomock.Controller) *LogHandler {
mock := &LogHandler{ctrl: ctrl}
mock.recorder = &LogHandlerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
2018-12-06 11:37:05 -05:00
func (m *LogHandler) EXPECT() *LogHandlerMockRecorder {
return m.recorder
}
// Handle mocks base method.
2018-12-06 11:37:05 -05:00
func (m *LogHandler) Handle(arg0 log.Message) {
2018-12-27 10:37:13 -05:00
m.ctrl.T.Helper()
2018-12-06 11:37:05 -05:00
m.ctrl.Call(m, "Handle", arg0)
}
// Handle indicates an expected call of Handle.
2018-12-06 11:37:05 -05:00
func (mr *LogHandlerMockRecorder) Handle(arg0 interface{}) *gomock.Call {
2018-12-27 10:37:13 -05:00
mr.mock.ctrl.T.Helper()
2018-12-06 11:37:05 -05:00
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Handle", reflect.TypeOf((*LogHandler)(nil).Handle), arg0)
}