-
Notifications
You must be signed in to change notification settings - Fork 2
/
executor_Executor.go
43 lines (33 loc) · 1005 Bytes
/
executor_Executor.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 2.9.0. DO NOT EDIT.
package mocks
import (
context "context"
models "github.com/krok-o/krok/pkg/models"
mock "github.com/stretchr/testify/mock"
)
// Executor is an autogenerated mock type for the Executor type
type Executor struct {
mock.Mock
}
// CancelRun provides a mock function with given fields: ctx, id
func (_m *Executor) CancelRun(ctx context.Context, id int) error {
ret := _m.Called(ctx, id)
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, int) error); ok {
r0 = rf(ctx, id)
} else {
r0 = ret.Error(0)
}
return r0
}
// CreateRun provides a mock function with given fields: ctx, event, commands
func (_m *Executor) CreateRun(ctx context.Context, event *models.Event, commands []*models.Command) error {
ret := _m.Called(ctx, event, commands)
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, *models.Event, []*models.Command) error); ok {
r0 = rf(ctx, event, commands)
} else {
r0 = ret.Error(0)
}
return r0
}