// Code generated by mockery v2.53.4. DO NOT EDIT. package github import ( context "context" v0alpha1 "github.com/grafana/grafana/apps/provisioning/pkg/apis/provisioning/v0alpha1" mock "github.com/stretchr/testify/mock" ) // MockWebhookURLBuilder is an autogenerated mock type for the WebhookURLBuilder type type MockWebhookURLBuilder struct { mock.Mock } type MockWebhookURLBuilder_Expecter struct { mock *mock.Mock } func (_m *MockWebhookURLBuilder) EXPECT() *MockWebhookURLBuilder_Expecter { return &MockWebhookURLBuilder_Expecter{mock: &_m.Mock} } // WebhookURL provides a mock function with given fields: ctx, r func (_m *MockWebhookURLBuilder) WebhookURL(ctx context.Context, r *v0alpha1.Repository) string { ret := _m.Called(ctx, r) if len(ret) == 0 { panic("no return value specified for WebhookURL") } var r0 string if rf, ok := ret.Get(0).(func(context.Context, *v0alpha1.Repository) string); ok { r0 = rf(ctx, r) } else { r0 = ret.Get(0).(string) } return r0 } // MockWebhookURLBuilder_WebhookURL_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WebhookURL' type MockWebhookURLBuilder_WebhookURL_Call struct { *mock.Call } // WebhookURL is a helper method to define mock.On call // - ctx context.Context // - r *v0alpha1.Repository func (_e *MockWebhookURLBuilder_Expecter) WebhookURL(ctx interface{}, r interface{}) *MockWebhookURLBuilder_WebhookURL_Call { return &MockWebhookURLBuilder_WebhookURL_Call{Call: _e.mock.On("WebhookURL", ctx, r)} } func (_c *MockWebhookURLBuilder_WebhookURL_Call) Run(run func(ctx context.Context, r *v0alpha1.Repository)) *MockWebhookURLBuilder_WebhookURL_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(*v0alpha1.Repository)) }) return _c } func (_c *MockWebhookURLBuilder_WebhookURL_Call) Return(_a0 string) *MockWebhookURLBuilder_WebhookURL_Call { _c.Call.Return(_a0) return _c } func (_c *MockWebhookURLBuilder_WebhookURL_Call) RunAndReturn(run func(context.Context, *v0alpha1.Repository) string) *MockWebhookURLBuilder_WebhookURL_Call { _c.Call.Return(run) return _c } // NewMockWebhookURLBuilder creates a new instance of MockWebhookURLBuilder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. func NewMockWebhookURLBuilder(t interface { mock.TestingT Cleanup(func()) }) *MockWebhookURLBuilder { mock := &MockWebhookURLBuilder{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock }