forked from kyma-project/kyma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
single_backup_executor.go
33 lines (27 loc) · 972 Bytes
/
single_backup_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
// Code generated by mockery v1.0.0
package automock
import backup "github.com/kyma-project/kyma/tools/etcd-backup/internal/backup"
import mock "github.com/stretchr/testify/mock"
// singleBackupExecutor is an autogenerated mock type for the singleBackupExecutor type
type singleBackupExecutor struct {
mock.Mock
}
// SingleBackup provides a mock function with given fields: stopCh, blobPrefix
func (_m *singleBackupExecutor) SingleBackup(stopCh <-chan struct{}, blobPrefix string) (*backup.SingleBackupOutput, error) {
ret := _m.Called(stopCh, blobPrefix)
var r0 *backup.SingleBackupOutput
if rf, ok := ret.Get(0).(func(<-chan struct{}, string) *backup.SingleBackupOutput); ok {
r0 = rf(stopCh, blobPrefix)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*backup.SingleBackupOutput)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(<-chan struct{}, string) error); ok {
r1 = rf(stopCh, blobPrefix)
} else {
r1 = ret.Error(1)
}
return r0, r1
}