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

     1  // Code generated by mockery v2.14.0. DO NOT EDIT.
     2  
     3  package automock
     4  
     5  import mock "github.com/stretchr/testify/mock"
     6  
     7  // PlanValidator is an autogenerated mock type for the PlanValidator type
     8  type PlanValidator struct {
     9  	mock.Mock
    10  }
    11  
    12  // IsPlanSupport provides a mock function with given fields: planID
    13  func (_m *PlanValidator) IsPlanSupport(planID string) bool {
    14  	ret := _m.Called(planID)
    15  
    16  	var r0 bool
    17  	if rf, ok := ret.Get(0).(func(string) bool); ok {
    18  		r0 = rf(planID)
    19  	} else {
    20  		r0 = ret.Get(0).(bool)
    21  	}
    22  
    23  	return r0
    24  }
    25  
    26  type mockConstructorTestingTNewPlanValidator interface {
    27  	mock.TestingT
    28  	Cleanup(func())
    29  }
    30  
    31  // NewPlanValidator creates a new instance of PlanValidator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    32  func NewPlanValidator(t mockConstructorTestingTNewPlanValidator) *PlanValidator {
    33  	mock := &PlanValidator{}
    34  	mock.Mock.Test(t)
    35  
    36  	t.Cleanup(func() { mock.AssertExpectations(t) })
    37  
    38  	return mock
    39  }