github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/internal/domain/apptemplate/automock/webhook_service.go (about)

     1  // Code generated by mockery. DO NOT EDIT.
     2  
     3  package automock
     4  
     5  import (
     6  	context "context"
     7  
     8  	graphql "github.com/kyma-incubator/compass/components/director/pkg/graphql"
     9  	mock "github.com/stretchr/testify/mock"
    10  
    11  	model "github.com/kyma-incubator/compass/components/director/internal/model"
    12  )
    13  
    14  // WebhookService is an autogenerated mock type for the WebhookService type
    15  type WebhookService struct {
    16  	mock.Mock
    17  }
    18  
    19  // EnrichWebhooksWithTenantMappingWebhooks provides a mock function with given fields: in
    20  func (_m *WebhookService) EnrichWebhooksWithTenantMappingWebhooks(in []*graphql.WebhookInput) ([]*graphql.WebhookInput, error) {
    21  	ret := _m.Called(in)
    22  
    23  	var r0 []*graphql.WebhookInput
    24  	if rf, ok := ret.Get(0).(func([]*graphql.WebhookInput) []*graphql.WebhookInput); ok {
    25  		r0 = rf(in)
    26  	} else {
    27  		if ret.Get(0) != nil {
    28  			r0 = ret.Get(0).([]*graphql.WebhookInput)
    29  		}
    30  	}
    31  
    32  	var r1 error
    33  	if rf, ok := ret.Get(1).(func([]*graphql.WebhookInput) error); ok {
    34  		r1 = rf(in)
    35  	} else {
    36  		r1 = ret.Error(1)
    37  	}
    38  
    39  	return r0, r1
    40  }
    41  
    42  // ListForApplicationTemplate provides a mock function with given fields: ctx, applicationTemplateID
    43  func (_m *WebhookService) ListForApplicationTemplate(ctx context.Context, applicationTemplateID string) ([]*model.Webhook, error) {
    44  	ret := _m.Called(ctx, applicationTemplateID)
    45  
    46  	var r0 []*model.Webhook
    47  	if rf, ok := ret.Get(0).(func(context.Context, string) []*model.Webhook); ok {
    48  		r0 = rf(ctx, applicationTemplateID)
    49  	} else {
    50  		if ret.Get(0) != nil {
    51  			r0 = ret.Get(0).([]*model.Webhook)
    52  		}
    53  	}
    54  
    55  	var r1 error
    56  	if rf, ok := ret.Get(1).(func(context.Context, string) error); ok {
    57  		r1 = rf(ctx, applicationTemplateID)
    58  	} else {
    59  		r1 = ret.Error(1)
    60  	}
    61  
    62  	return r0, r1
    63  }
    64  
    65  type mockConstructorTestingTNewWebhookService interface {
    66  	mock.TestingT
    67  	Cleanup(func())
    68  }
    69  
    70  // NewWebhookService creates a new instance of WebhookService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    71  func NewWebhookService(t mockConstructorTestingTNewWebhookService) *WebhookService {
    72  	mock := &WebhookService{}
    73  	mock.Mock.Test(t)
    74  
    75  	t.Cleanup(func() { mock.AssertExpectations(t) })
    76  
    77  	return mock
    78  }