gitlab.com/jfprevost/gitlab-runner-notlscheck@v11.11.4+incompatible/executors/docker/internal/volumes/mock_CacheContainersManager.go (about)

     1  // Code generated by mockery v1.0.0. DO NOT EDIT.
     2  
     3  package volumes
     4  
     5  import context "context"
     6  import mock "github.com/stretchr/testify/mock"
     7  
     8  // MockCacheContainersManager is an autogenerated mock type for the CacheContainersManager type
     9  type MockCacheContainersManager struct {
    10  	mock.Mock
    11  }
    12  
    13  // Cleanup provides a mock function with given fields: ctx, ids
    14  func (_m *MockCacheContainersManager) Cleanup(ctx context.Context, ids []string) chan bool {
    15  	ret := _m.Called(ctx, ids)
    16  
    17  	var r0 chan bool
    18  	if rf, ok := ret.Get(0).(func(context.Context, []string) chan bool); ok {
    19  		r0 = rf(ctx, ids)
    20  	} else {
    21  		if ret.Get(0) != nil {
    22  			r0 = ret.Get(0).(chan bool)
    23  		}
    24  	}
    25  
    26  	return r0
    27  }
    28  
    29  // Create provides a mock function with given fields: containerName, containerPath
    30  func (_m *MockCacheContainersManager) Create(containerName string, containerPath string) (string, error) {
    31  	ret := _m.Called(containerName, containerPath)
    32  
    33  	var r0 string
    34  	if rf, ok := ret.Get(0).(func(string, string) string); ok {
    35  		r0 = rf(containerName, containerPath)
    36  	} else {
    37  		r0 = ret.Get(0).(string)
    38  	}
    39  
    40  	var r1 error
    41  	if rf, ok := ret.Get(1).(func(string, string) error); ok {
    42  		r1 = rf(containerName, containerPath)
    43  	} else {
    44  		r1 = ret.Error(1)
    45  	}
    46  
    47  	return r0, r1
    48  }
    49  
    50  // FindOrCleanExisting provides a mock function with given fields: containerName, containerPath
    51  func (_m *MockCacheContainersManager) FindOrCleanExisting(containerName string, containerPath string) string {
    52  	ret := _m.Called(containerName, containerPath)
    53  
    54  	var r0 string
    55  	if rf, ok := ret.Get(0).(func(string, string) string); ok {
    56  		r0 = rf(containerName, containerPath)
    57  	} else {
    58  		r0 = ret.Get(0).(string)
    59  	}
    60  
    61  	return r0
    62  }