github.com/wata727/tflint@v0.12.2-0.20191013070026-96dd0d36f385/tflint/loader_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: loader.go 3 4 // Package tflint is a generated GoMock package. 5 package tflint 6 7 import ( 8 gomock "github.com/golang/mock/gomock" 9 configs "github.com/hashicorp/terraform/configs" 10 terraform "github.com/hashicorp/terraform/terraform" 11 reflect "reflect" 12 ) 13 14 // MockAbstractLoader is a mock of AbstractLoader interface 15 type MockAbstractLoader struct { 16 ctrl *gomock.Controller 17 recorder *MockAbstractLoaderMockRecorder 18 } 19 20 // MockAbstractLoaderMockRecorder is the mock recorder for MockAbstractLoader 21 type MockAbstractLoaderMockRecorder struct { 22 mock *MockAbstractLoader 23 } 24 25 // NewMockAbstractLoader creates a new mock instance 26 func NewMockAbstractLoader(ctrl *gomock.Controller) *MockAbstractLoader { 27 mock := &MockAbstractLoader{ctrl: ctrl} 28 mock.recorder = &MockAbstractLoaderMockRecorder{mock} 29 return mock 30 } 31 32 // EXPECT returns an object that allows the caller to indicate expected use 33 func (m *MockAbstractLoader) EXPECT() *MockAbstractLoaderMockRecorder { 34 return m.recorder 35 } 36 37 // LoadConfig mocks base method 38 func (m *MockAbstractLoader) LoadConfig(arg0 string) (*configs.Config, error) { 39 m.ctrl.T.Helper() 40 ret := m.ctrl.Call(m, "LoadConfig", arg0) 41 ret0, _ := ret[0].(*configs.Config) 42 ret1, _ := ret[1].(error) 43 return ret0, ret1 44 } 45 46 // LoadConfig indicates an expected call of LoadConfig 47 func (mr *MockAbstractLoaderMockRecorder) LoadConfig(arg0 interface{}) *gomock.Call { 48 mr.mock.ctrl.T.Helper() 49 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadConfig", reflect.TypeOf((*MockAbstractLoader)(nil).LoadConfig), arg0) 50 } 51 52 // LoadAnnotations mocks base method 53 func (m *MockAbstractLoader) LoadAnnotations(arg0 string) (map[string]Annotations, error) { 54 m.ctrl.T.Helper() 55 ret := m.ctrl.Call(m, "LoadAnnotations", arg0) 56 ret0, _ := ret[0].(map[string]Annotations) 57 ret1, _ := ret[1].(error) 58 return ret0, ret1 59 } 60 61 // LoadAnnotations indicates an expected call of LoadAnnotations 62 func (mr *MockAbstractLoaderMockRecorder) LoadAnnotations(arg0 interface{}) *gomock.Call { 63 mr.mock.ctrl.T.Helper() 64 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadAnnotations", reflect.TypeOf((*MockAbstractLoader)(nil).LoadAnnotations), arg0) 65 } 66 67 // LoadValuesFiles mocks base method 68 func (m *MockAbstractLoader) LoadValuesFiles(arg0 ...string) ([]terraform.InputValues, error) { 69 m.ctrl.T.Helper() 70 varargs := []interface{}{} 71 for _, a := range arg0 { 72 varargs = append(varargs, a) 73 } 74 ret := m.ctrl.Call(m, "LoadValuesFiles", varargs...) 75 ret0, _ := ret[0].([]terraform.InputValues) 76 ret1, _ := ret[1].(error) 77 return ret0, ret1 78 } 79 80 // LoadValuesFiles indicates an expected call of LoadValuesFiles 81 func (mr *MockAbstractLoaderMockRecorder) LoadValuesFiles(arg0 ...interface{}) *gomock.Call { 82 mr.mock.ctrl.T.Helper() 83 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadValuesFiles", reflect.TypeOf((*MockAbstractLoader)(nil).LoadValuesFiles), arg0...) 84 } 85 86 // Sources mocks base method 87 func (m *MockAbstractLoader) Sources() map[string][]byte { 88 m.ctrl.T.Helper() 89 ret := m.ctrl.Call(m, "Sources") 90 ret0, _ := ret[0].(map[string][]byte) 91 return ret0 92 } 93 94 // Sources indicates an expected call of Sources 95 func (mr *MockAbstractLoaderMockRecorder) Sources() *gomock.Call { 96 mr.mock.ctrl.T.Helper() 97 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Sources", reflect.TypeOf((*MockAbstractLoader)(nil).Sources)) 98 }