forked from argoproj/argo-workflows
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AppComparator.go
33 lines (27 loc) · 952 Bytes
/
AppComparator.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 mocks
import mock "github.com/stretchr/testify/mock"
import v1alpha1 "github.com/argoproj/argo-cd/pkg/apis/application/v1alpha1"
// AppComparator is an autogenerated mock type for the AppComparator type
type AppComparator struct {
mock.Mock
}
// CompareAppState provides a mock function with given fields: appRepoPath, app
func (_m *AppComparator) CompareAppState(appRepoPath string, app *v1alpha1.Application) (*v1alpha1.ComparisonResult, error) {
ret := _m.Called(appRepoPath, app)
var r0 *v1alpha1.ComparisonResult
if rf, ok := ret.Get(0).(func(string, *v1alpha1.Application) *v1alpha1.ComparisonResult); ok {
r0 = rf(appRepoPath, app)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*v1alpha1.ComparisonResult)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(string, *v1alpha1.Application) error); ok {
r1 = rf(appRepoPath, app)
} else {
r1 = ret.Error(1)
}
return r0, r1
}