-
Notifications
You must be signed in to change notification settings - Fork 11
/
mutex_mock_test.go
58 lines (48 loc) · 1.78 KB
/
mutex_mock_test.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
46
47
48
49
50
51
52
53
54
55
56
57
58
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/juju/mutex (interfaces: Environment)
// Package mutex_test is a generated GoMock package.
package mutex_test
import (
gomock "github.com/golang/mock/gomock"
reflect "reflect"
)
// MockEnvironment is a mock of Environment interface
type MockEnvironment struct {
ctrl *gomock.Controller
recorder *MockEnvironmentMockRecorder
}
// MockEnvironmentMockRecorder is the mock recorder for MockEnvironment
type MockEnvironmentMockRecorder struct {
mock *MockEnvironment
}
// NewMockEnvironment creates a new mock instance
func NewMockEnvironment(ctrl *gomock.Controller) *MockEnvironment {
mock := &MockEnvironment{ctrl: ctrl}
mock.recorder = &MockEnvironmentMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockEnvironment) EXPECT() *MockEnvironmentMockRecorder {
return m.recorder
}
// Getenv mocks base method
func (m *MockEnvironment) Getenv(arg0 string) string {
ret := m.ctrl.Call(m, "Getenv", arg0)
ret0, _ := ret[0].(string)
return ret0
}
// Getenv indicates an expected call of Getenv
func (mr *MockEnvironmentMockRecorder) Getenv(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Getenv", reflect.TypeOf((*MockEnvironment)(nil).Getenv), arg0)
}
// LookupEnv mocks base method
func (m *MockEnvironment) LookupEnv(arg0 string) (string, bool) {
ret := m.ctrl.Call(m, "LookupEnv", arg0)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(bool)
return ret0, ret1
}
// LookupEnv indicates an expected call of LookupEnv
func (mr *MockEnvironmentMockRecorder) LookupEnv(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LookupEnv", reflect.TypeOf((*MockEnvironment)(nil).LookupEnv), arg0)
}