github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/pkg/auth/automock/certificate_cache.go (about) 1 // Code generated by mockery. DO NOT EDIT. 2 3 package automock 4 5 import ( 6 tls "crypto/tls" 7 8 mock "github.com/stretchr/testify/mock" 9 ) 10 11 // CertificateCache is an autogenerated mock type for the CertificateCache type 12 type CertificateCache struct { 13 mock.Mock 14 } 15 16 // Get provides a mock function with given fields: 17 func (_m *CertificateCache) Get() map[string]*tls.Certificate { 18 ret := _m.Called() 19 20 var r0 map[string]*tls.Certificate 21 if rf, ok := ret.Get(0).(func() map[string]*tls.Certificate); ok { 22 r0 = rf() 23 } else { 24 if ret.Get(0) != nil { 25 r0 = ret.Get(0).(map[string]*tls.Certificate) 26 } 27 } 28 29 return r0 30 } 31 32 type mockConstructorTestingTNewCertificateCache interface { 33 mock.TestingT 34 Cleanup(func()) 35 } 36 37 // NewCertificateCache creates a new instance of CertificateCache. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 38 func NewCertificateCache(t mockConstructorTestingTNewCertificateCache) *CertificateCache { 39 mock := &CertificateCache{} 40 mock.Mock.Test(t) 41 42 t.Cleanup(func() { mock.AssertExpectations(t) }) 43 44 return mock 45 }