driftctl/enumeration/remote/common/mock_Enumerator.go

51 lines
1.1 KiB
Go
Raw Normal View History

2021-07-26 09:55:59 +00:00
// Code generated by mockery v0.0.0-dev. DO NOT EDIT.
package common
import (
resource "github.com/snyk/driftctl/enumeration/resource"
2021-07-26 09:55:59 +00:00
mock "github.com/stretchr/testify/mock"
)
// MockEnumerator is an autogenerated mock type for the Enumerator type
type MockEnumerator struct {
mock.Mock
}
// Enumerate provides a mock function with given fields:
2021-08-09 14:03:04 +00:00
func (_m *MockEnumerator) Enumerate() ([]*resource.Resource, error) {
2021-07-26 09:55:59 +00:00
ret := _m.Called()
2021-08-09 14:03:04 +00:00
var r0 []*resource.Resource
if rf, ok := ret.Get(0).(func() []*resource.Resource); ok {
2021-07-26 09:55:59 +00:00
r0 = rf()
} else {
if ret.Get(0) != nil {
2021-08-09 14:03:04 +00:00
r0 = ret.Get(0).([]*resource.Resource)
2021-07-26 09:55:59 +00:00
}
}
var r1 error
if rf, ok := ret.Get(1).(func() error); ok {
r1 = rf()
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// SupportedType provides a mock function with given fields:
func (_m *MockEnumerator) SupportedType() resource.ResourceType {
ret := _m.Called()
var r0 resource.ResourceType
if rf, ok := ret.Get(0).(func() resource.ResourceType); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(resource.ResourceType)
}
return r0
}