37 lines
821 B
Go
37 lines
821 B
Go
|
// Code generated by mockery v2.3.0. DO NOT EDIT.
|
||
|
|
||
|
package terraform
|
||
|
|
||
|
import (
|
||
|
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
|
||
|
}
|
||
|
|
||
|
// 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
|
||
|
}
|