Seed code
[nonrtric/plt/sme.git] / internal / helmmanagement / mocks / HelmManager.go
1 // Code generated by mockery v2.14.0. DO NOT EDIT.
2
3 package mocks
4
5 import mock "github.com/stretchr/testify/mock"
6
7 // HelmManager is an autogenerated mock type for the HelmManager type
8 type HelmManager struct {
9         mock.Mock
10 }
11
12 // AddToRepo provides a mock function with given fields: repoName, url
13 func (_m *HelmManager) AddToRepo(repoName string, url string) error {
14         ret := _m.Called(repoName, url)
15
16         var r0 error
17         if rf, ok := ret.Get(0).(func(string, string) error); ok {
18                 r0 = rf(repoName, url)
19         } else {
20                 r0 = ret.Error(0)
21         }
22
23         return r0
24 }
25
26 // InstallHelmChart provides a mock function with given fields: namespace, repoName, chartName, releaseName
27 func (_m *HelmManager) InstallHelmChart(namespace string, repoName string, chartName string, releaseName string) error {
28         ret := _m.Called(namespace, repoName, chartName, releaseName)
29
30         var r0 error
31         if rf, ok := ret.Get(0).(func(string, string, string, string) error); ok {
32                 r0 = rf(namespace, repoName, chartName, releaseName)
33         } else {
34                 r0 = ret.Error(0)
35         }
36
37         return r0
38 }
39
40 // UninstallHelmChart provides a mock function with given fields: namespace, chartName
41 func (_m *HelmManager) UninstallHelmChart(namespace string, chartName string) {
42         _m.Called(namespace, chartName)
43 }
44
45 type mockConstructorTestingTNewHelmManager interface {
46         mock.TestingT
47         Cleanup(func())
48 }
49
50 // NewHelmManager creates a new instance of HelmManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
51 func NewHelmManager(t mockConstructorTestingTNewHelmManager) *HelmManager {
52         mock := &HelmManager{}
53         mock.Mock.Test(t)
54
55         t.Cleanup(func() { mock.AssertExpectations(t) })
56
57         return mock
58 }