2021-03-29 16:10:50 +00:00
|
|
|
// Code generated by mockery v2.3.0. DO NOT EDIT.
|
|
|
|
|
|
|
|
package terraform
|
|
|
|
|
|
|
|
import (
|
2021-04-29 15:17:55 +00:00
|
|
|
"github.com/cloudskiff/driftctl/pkg/resource"
|
2021-03-29 16:10:50 +00:00
|
|
|
mock "github.com/stretchr/testify/mock"
|
|
|
|
cty "github.com/zclconf/go-cty/cty"
|
|
|
|
)
|
|
|
|
|
|
|
|
// MockResourceFactory is an autogenerated mock type for the ResourceFactory type
|
|
|
|
type MockResourceFactory struct {
|
|
|
|
mock.Mock
|
|
|
|
}
|
|
|
|
|
2021-05-04 13:03:17 +00:00
|
|
|
// CreateAbstractResource provides a mock function with given fields: ty, id, data
|
|
|
|
func (_m *MockResourceFactory) CreateAbstractResource(ty string, id string, data map[string]interface{}) *resource.AbstractResource {
|
|
|
|
ret := _m.Called(ty, id, data)
|
2021-04-29 15:17:55 +00:00
|
|
|
|
2021-05-04 13:03:17 +00:00
|
|
|
var r0 *resource.AbstractResource
|
|
|
|
if rf, ok := ret.Get(0).(func(string, string, map[string]interface{}) *resource.AbstractResource); ok {
|
|
|
|
r0 = rf(ty, id, data)
|
2021-04-29 15:17:55 +00:00
|
|
|
} else {
|
2021-05-04 13:03:17 +00:00
|
|
|
if ret.Get(0) != nil {
|
|
|
|
r0 = ret.Get(0).(*resource.AbstractResource)
|
|
|
|
}
|
2021-04-29 15:17:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return r0
|
|
|
|
}
|
|
|
|
|
2021-03-29 16:10:50 +00:00
|
|
|
// CreateResource provides a mock function with given fields: data, ty
|
|
|
|
func (_m *MockResourceFactory) CreateResource(data interface{}, ty string) (*cty.Value, error) {
|
|
|
|
ret := _m.Called(data, ty)
|
|
|
|
|
|
|
|
var r0 *cty.Value
|
|
|
|
if rf, ok := ret.Get(0).(func(interface{}, string) *cty.Value); ok {
|
|
|
|
r0 = rf(data, ty)
|
|
|
|
} else {
|
|
|
|
if ret.Get(0) != nil {
|
|
|
|
r0 = ret.Get(0).(*cty.Value)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var r1 error
|
|
|
|
if rf, ok := ret.Get(1).(func(interface{}, string) error); ok {
|
|
|
|
r1 = rf(data, ty)
|
|
|
|
} else {
|
|
|
|
r1 = ret.Error(1)
|
|
|
|
}
|
|
|
|
|
|
|
|
return r0, r1
|
|
|
|
}
|