mock_CacheContainersManager.go 1.63 KB
Newer Older
1
2
// Code generated by mockery v1.0.0. DO NOT EDIT.

3
package volumes
4

5
import context "context"
6
7
import mock "github.com/stretchr/testify/mock"

8
9
// MockCacheContainersManager is an autogenerated mock type for the CacheContainersManager type
type MockCacheContainersManager struct {
10
11
12
	mock.Mock
}

13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Cleanup provides a mock function with given fields: ctx, ids
func (_m *MockCacheContainersManager) Cleanup(ctx context.Context, ids []string) chan bool {
	ret := _m.Called(ctx, ids)

	var r0 chan bool
	if rf, ok := ret.Get(0).(func(context.Context, []string) chan bool); ok {
		r0 = rf(ctx, ids)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(chan bool)
		}
	}

	return r0
}

29
30
// Create provides a mock function with given fields: containerName, containerPath
func (_m *MockCacheContainersManager) Create(containerName string, containerPath string) (string, error) {
31
	ret := _m.Called(containerName, containerPath)
32

33
34
35
	var r0 string
	if rf, ok := ret.Get(0).(func(string, string) string); ok {
		r0 = rf(containerName, containerPath)
36
	} else {
37
		r0 = ret.Get(0).(string)
38
39
40
	}

	var r1 error
41
42
	if rf, ok := ret.Get(1).(func(string, string) error); ok {
		r1 = rf(containerName, containerPath)
43
44
45
46
47
48
49
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

50
51
// FindOrCleanExisting provides a mock function with given fields: containerName, containerPath
func (_m *MockCacheContainersManager) FindOrCleanExisting(containerName string, containerPath string) string {
52
	ret := _m.Called(containerName, containerPath)
53

54
55
56
	var r0 string
	if rf, ok := ret.Get(0).(func(string, string) string); ok {
		r0 = rf(containerName, containerPath)
57
	} else {
58
		r0 = ret.Get(0).(string)
59
60
61
62
	}

	return r0
}