-
Notifications
You must be signed in to change notification settings - Fork 0
/
logger.go
45 lines (36 loc) · 1.08 KB
/
logger.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Copyright (C) 2017 Michał Matczuk
// Use of this source code is governed by an AGPL-style
// license that can be found in the LICENSE file.
// Automatically generated by MockGen. DO NOT EDIT!
// Source: github.com/mmatczuk/go-http-tunnel/log (interfaces: Logger)
package tunnelmock
import (
gomock "github.com/golang/mock/gomock"
)
// Mock of Logger interface
type MockLogger struct {
ctrl *gomock.Controller
recorder *_MockLoggerRecorder
}
// Recorder for MockLogger (not exported)
type _MockLoggerRecorder struct {
mock *MockLogger
}
func NewMockLogger(ctrl *gomock.Controller) *MockLogger {
mock := &MockLogger{ctrl: ctrl}
mock.recorder = &_MockLoggerRecorder{mock}
return mock
}
func (_m *MockLogger) EXPECT() *_MockLoggerRecorder {
return _m.recorder
}
func (_m *MockLogger) Log(_param0 ...interface{}) error {
_s := []interface{}{}
_s = append(_s, _param0...)
ret := _m.ctrl.Call(_m, "Log", _s...)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockLoggerRecorder) Log(arg0 ...interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Log", arg0...)
}