1// Code generated by mockery v1.0.0. DO NOT EDIT.
2
3package local
4
5import (
6	types "github.com/aquasecurity/fanal/types"
7	mock "github.com/stretchr/testify/mock"
8)
9
10// MockApplier is an autogenerated mock type for the Applier type
11type MockApplier struct {
12	mock.Mock
13}
14
15type ApplierApplyLayersArgs struct {
16	ArtifactID         string
17	ArtifactIDAnything bool
18	BlobIDs            []string
19	BlobIDsAnything    bool
20}
21
22type ApplierApplyLayersReturns struct {
23	Detail types.ArtifactDetail
24	Err    error
25}
26
27type ApplierApplyLayersExpectation struct {
28	Args    ApplierApplyLayersArgs
29	Returns ApplierApplyLayersReturns
30}
31
32func (_m *MockApplier) ApplyApplyLayersExpectation(e ApplierApplyLayersExpectation) {
33	var args []interface{}
34	if e.Args.ArtifactIDAnything {
35		args = append(args, mock.Anything)
36	} else {
37		args = append(args, e.Args.ArtifactID)
38	}
39	if e.Args.BlobIDsAnything {
40		args = append(args, mock.Anything)
41	} else {
42		args = append(args, e.Args.BlobIDs)
43	}
44	_m.On("ApplyLayers", args...).Return(e.Returns.Detail, e.Returns.Err)
45}
46
47func (_m *MockApplier) ApplyApplyLayersExpectations(expectations []ApplierApplyLayersExpectation) {
48	for _, e := range expectations {
49		_m.ApplyApplyLayersExpectation(e)
50	}
51}
52
53// ApplyLayers provides a mock function with given fields: artifactID, blobIDs
54func (_m *MockApplier) ApplyLayers(artifactID string, blobIDs []string) (types.ArtifactDetail, error) {
55	ret := _m.Called(artifactID, blobIDs)
56
57	var r0 types.ArtifactDetail
58	if rf, ok := ret.Get(0).(func(string, []string) types.ArtifactDetail); ok {
59		r0 = rf(artifactID, blobIDs)
60	} else {
61		r0 = ret.Get(0).(types.ArtifactDetail)
62	}
63
64	var r1 error
65	if rf, ok := ret.Get(1).(func(string, []string) error); ok {
66		r1 = rf(artifactID, blobIDs)
67	} else {
68		r1 = ret.Error(1)
69	}
70
71	return r0, r1
72}
73