-
Notifications
You must be signed in to change notification settings - Fork 8
/
option_func.go
68 lines (54 loc) · 1.79 KB
/
option_func.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// Code generated by mockery v2.32.4. DO NOT EDIT.
package cluster
import (
mock "github.com/stretchr/testify/mock"
goaktcluster "github.com/tochemey/goakt/cluster"
)
// OptionFunc is an autogenerated mock type for the OptionFunc type
type OptionFunc struct {
mock.Mock
}
type OptionFunc_Expecter struct {
mock *mock.Mock
}
func (_m *OptionFunc) EXPECT() *OptionFunc_Expecter {
return &OptionFunc_Expecter{mock: &_m.Mock}
}
// Execute provides a mock function with given fields: cl
func (_m *OptionFunc) Execute(cl *goaktcluster.Cluster) {
_m.Called(cl)
}
// OptionFunc_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
type OptionFunc_Execute_Call struct {
*mock.Call
}
// Execute is a helper method to define mock.On call
// - cl *goaktcluster.Cluster
func (_e *OptionFunc_Expecter) Execute(cl interface{}) *OptionFunc_Execute_Call {
return &OptionFunc_Execute_Call{Call: _e.mock.On("Execute", cl)}
}
func (_c *OptionFunc_Execute_Call) Run(run func(cl *goaktcluster.Cluster)) *OptionFunc_Execute_Call {
_c.Call.Run(func(args mock.Arguments) {
run(args[0].(*goaktcluster.Cluster))
})
return _c
}
func (_c *OptionFunc_Execute_Call) Return() *OptionFunc_Execute_Call {
_c.Call.Return()
return _c
}
func (_c *OptionFunc_Execute_Call) RunAndReturn(run func(*goaktcluster.Cluster)) *OptionFunc_Execute_Call {
_c.Call.Return(run)
return _c
}
// NewOptionFunc creates a new instance of OptionFunc. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
// The first argument is typically a *testing.T value.
func NewOptionFunc(t interface {
mock.TestingT
Cleanup(func())
}) *OptionFunc {
mock := &OptionFunc{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}