github.com/kyma-project/kyma-environment-broker@v0.0.1/internal/ias/automock/bundle.go (about)

     1  // Code generated by mockery v2.14.0. DO NOT EDIT.
     2  
     3  package automock
     4  
     5  import (
     6  	ias "github.com/kyma-project/kyma-environment-broker/internal/ias"
     7  	mock "github.com/stretchr/testify/mock"
     8  )
     9  
    10  // Bundle is an autogenerated mock type for the Bundle type
    11  type Bundle struct {
    12  	mock.Mock
    13  }
    14  
    15  // ConfigureServiceProvider provides a mock function with given fields:
    16  func (_m *Bundle) ConfigureServiceProvider() error {
    17  	ret := _m.Called()
    18  
    19  	var r0 error
    20  	if rf, ok := ret.Get(0).(func() error); ok {
    21  		r0 = rf()
    22  	} else {
    23  		r0 = ret.Error(0)
    24  	}
    25  
    26  	return r0
    27  }
    28  
    29  // ConfigureServiceProviderType provides a mock function with given fields: path
    30  func (_m *Bundle) ConfigureServiceProviderType(path string) error {
    31  	ret := _m.Called(path)
    32  
    33  	var r0 error
    34  	if rf, ok := ret.Get(0).(func(string) error); ok {
    35  		r0 = rf(path)
    36  	} else {
    37  		r0 = ret.Error(0)
    38  	}
    39  
    40  	return r0
    41  }
    42  
    43  // CreateServiceProvider provides a mock function with given fields:
    44  func (_m *Bundle) CreateServiceProvider() error {
    45  	ret := _m.Called()
    46  
    47  	var r0 error
    48  	if rf, ok := ret.Get(0).(func() error); ok {
    49  		r0 = rf()
    50  	} else {
    51  		r0 = ret.Error(0)
    52  	}
    53  
    54  	return r0
    55  }
    56  
    57  // DeleteServiceProvider provides a mock function with given fields:
    58  func (_m *Bundle) DeleteServiceProvider() error {
    59  	ret := _m.Called()
    60  
    61  	var r0 error
    62  	if rf, ok := ret.Get(0).(func() error); ok {
    63  		r0 = rf()
    64  	} else {
    65  		r0 = ret.Error(0)
    66  	}
    67  
    68  	return r0
    69  }
    70  
    71  // FetchServiceProviderData provides a mock function with given fields:
    72  func (_m *Bundle) FetchServiceProviderData() error {
    73  	ret := _m.Called()
    74  
    75  	var r0 error
    76  	if rf, ok := ret.Get(0).(func() error); ok {
    77  		r0 = rf()
    78  	} else {
    79  		r0 = ret.Error(0)
    80  	}
    81  
    82  	return r0
    83  }
    84  
    85  // GenerateSecret provides a mock function with given fields:
    86  func (_m *Bundle) GenerateSecret() (*ias.ServiceProviderSecret, error) {
    87  	ret := _m.Called()
    88  
    89  	var r0 *ias.ServiceProviderSecret
    90  	if rf, ok := ret.Get(0).(func() *ias.ServiceProviderSecret); ok {
    91  		r0 = rf()
    92  	} else {
    93  		if ret.Get(0) != nil {
    94  			r0 = ret.Get(0).(*ias.ServiceProviderSecret)
    95  		}
    96  	}
    97  
    98  	var r1 error
    99  	if rf, ok := ret.Get(1).(func() error); ok {
   100  		r1 = rf()
   101  	} else {
   102  		r1 = ret.Error(1)
   103  	}
   104  
   105  	return r0, r1
   106  }
   107  
   108  // ServiceProviderExist provides a mock function with given fields:
   109  func (_m *Bundle) ServiceProviderExist() bool {
   110  	ret := _m.Called()
   111  
   112  	var r0 bool
   113  	if rf, ok := ret.Get(0).(func() bool); ok {
   114  		r0 = rf()
   115  	} else {
   116  		r0 = ret.Get(0).(bool)
   117  	}
   118  
   119  	return r0
   120  }
   121  
   122  // ServiceProviderName provides a mock function with given fields:
   123  func (_m *Bundle) ServiceProviderName() string {
   124  	ret := _m.Called()
   125  
   126  	var r0 string
   127  	if rf, ok := ret.Get(0).(func() string); ok {
   128  		r0 = rf()
   129  	} else {
   130  		r0 = ret.Get(0).(string)
   131  	}
   132  
   133  	return r0
   134  }
   135  
   136  // ServiceProviderType provides a mock function with given fields:
   137  func (_m *Bundle) ServiceProviderType() string {
   138  	ret := _m.Called()
   139  
   140  	var r0 string
   141  	if rf, ok := ret.Get(0).(func() string); ok {
   142  		r0 = rf()
   143  	} else {
   144  		r0 = ret.Get(0).(string)
   145  	}
   146  
   147  	return r0
   148  }
   149  
   150  type mockConstructorTestingTNewBundle interface {
   151  	mock.TestingT
   152  	Cleanup(func())
   153  }
   154  
   155  // NewBundle creates a new instance of Bundle. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
   156  func NewBundle(t mockConstructorTestingTNewBundle) *Bundle {
   157  	mock := &Bundle{}
   158  	mock.Mock.Test(t)
   159  
   160  	t.Cleanup(func() { mock.AssertExpectations(t) })
   161  
   162  	return mock
   163  }