forked from vektra/mockery
/
MapToInterface.go
36 lines (28 loc) · 966 Bytes
/
MapToInterface.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
// Code generated by mockery. DO NOT EDIT.
package mocks
import mock "github.com/stretchr/testify/mock"
// MapToInterface is an autogenerated mock type for the MapToInterface type
type MapToInterface struct {
mock.Mock
}
// Foo provides a mock function with given fields: arg1
func (_m *MapToInterface) Foo(arg1 ...map[string]interface{}) {
_va := make([]interface{}, len(arg1))
for _i := range arg1 {
_va[_i] = arg1[_i]
}
var _ca []interface{}
_ca = append(_ca, _va...)
_m.Called(_ca...)
}
type mockConstructorTestingTNewMapToInterface interface {
mock.TestingT
Cleanup(func())
}
// NewMapToInterface creates a new instance of MapToInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewMapToInterface(t mockConstructorTestingTNewMapToInterface) *MapToInterface {
mock := &MapToInterface{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}