github.com/esnet/gdg@v0.6.1-0.20240412190737-6b6eba9c14d8/internal/service/mocks/NewClientOpts.go (about) 1 // Code generated by mockery v2.42.1. DO NOT EDIT. 2 3 package mocks 4 5 import ( 6 client "github.com/grafana/grafana-openapi-client-go/client" 7 mock "github.com/stretchr/testify/mock" 8 ) 9 10 // NewClientOpts is an autogenerated mock type for the NewClientOpts type 11 type NewClientOpts struct { 12 mock.Mock 13 } 14 15 type NewClientOpts_Expecter struct { 16 mock *mock.Mock 17 } 18 19 func (_m *NewClientOpts) EXPECT() *NewClientOpts_Expecter { 20 return &NewClientOpts_Expecter{mock: &_m.Mock} 21 } 22 23 // Execute provides a mock function with given fields: transportConfig 24 func (_m *NewClientOpts) Execute(transportConfig *client.TransportConfig) { 25 _m.Called(transportConfig) 26 } 27 28 // NewClientOpts_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute' 29 type NewClientOpts_Execute_Call struct { 30 *mock.Call 31 } 32 33 // Execute is a helper method to define mock.On call 34 // - transportConfig *client.TransportConfig 35 func (_e *NewClientOpts_Expecter) Execute(transportConfig interface{}) *NewClientOpts_Execute_Call { 36 return &NewClientOpts_Execute_Call{Call: _e.mock.On("Execute", transportConfig)} 37 } 38 39 func (_c *NewClientOpts_Execute_Call) Run(run func(transportConfig *client.TransportConfig)) *NewClientOpts_Execute_Call { 40 _c.Call.Run(func(args mock.Arguments) { 41 run(args[0].(*client.TransportConfig)) 42 }) 43 return _c 44 } 45 46 func (_c *NewClientOpts_Execute_Call) Return() *NewClientOpts_Execute_Call { 47 _c.Call.Return() 48 return _c 49 } 50 51 func (_c *NewClientOpts_Execute_Call) RunAndReturn(run func(*client.TransportConfig)) *NewClientOpts_Execute_Call { 52 _c.Call.Return(run) 53 return _c 54 } 55 56 // NewNewClientOpts creates a new instance of NewClientOpts. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 57 // The first argument is typically a *testing.T value. 58 func NewNewClientOpts(t interface { 59 mock.TestingT 60 Cleanup(func()) 61 }) *NewClientOpts { 62 mock := &NewClientOpts{} 63 mock.Mock.Test(t) 64 65 t.Cleanup(func() { mock.AssertExpectations(t) }) 66 67 return mock 68 }