/
Trigger.go
43 lines (32 loc) · 1.12 KB
/
Trigger.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
// Code generated by mockery v0.0.0-dev. DO NOT EDIT.
package mocks
import (
context "context"
bootstrap "github.com/edgexfoundry/go-mod-bootstrap/v2/bootstrap"
interfaces "github.com/edgexfoundry/app-functions-sdk-go/v2/pkg/interfaces"
mock "github.com/stretchr/testify/mock"
sync "sync"
)
// Trigger is an autogenerated mock type for the Trigger type
type Trigger struct {
mock.Mock
}
// Initialize provides a mock function with given fields: wg, ctx, background
func (_m *Trigger) Initialize(wg *sync.WaitGroup, ctx context.Context, background <-chan interfaces.BackgroundMessage) (bootstrap.Deferred, error) {
ret := _m.Called(wg, ctx, background)
var r0 bootstrap.Deferred
if rf, ok := ret.Get(0).(func(*sync.WaitGroup, context.Context, <-chan interfaces.BackgroundMessage) bootstrap.Deferred); ok {
r0 = rf(wg, ctx, background)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(bootstrap.Deferred)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(*sync.WaitGroup, context.Context, <-chan interfaces.BackgroundMessage) error); ok {
r1 = rf(wg, ctx, background)
} else {
r1 = ret.Error(1)
}
return r0, r1
}