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

     1  // Code generated by mockery. DO NOT EDIT.
     2  
     3  package automock
     4  
     5  import (
     6  	context "context"
     7  
     8  	formationconstraint "github.com/kyma-incubator/compass/components/director/pkg/formationconstraint"
     9  
    10  	mock "github.com/stretchr/testify/mock"
    11  )
    12  
    13  // ConstraintEngine is an autogenerated mock type for the constraintEngine type
    14  type ConstraintEngine struct {
    15  	mock.Mock
    16  }
    17  
    18  // EnforceConstraints provides a mock function with given fields: ctx, location, details, formationTemplateID
    19  func (_m *ConstraintEngine) EnforceConstraints(ctx context.Context, location formationconstraint.JoinPointLocation, details formationconstraint.JoinPointDetails, formationTemplateID string) error {
    20  	ret := _m.Called(ctx, location, details, formationTemplateID)
    21  
    22  	var r0 error
    23  	if rf, ok := ret.Get(0).(func(context.Context, formationconstraint.JoinPointLocation, formationconstraint.JoinPointDetails, string) error); ok {
    24  		r0 = rf(ctx, location, details, formationTemplateID)
    25  	} else {
    26  		r0 = ret.Error(0)
    27  	}
    28  
    29  	return r0
    30  }
    31  
    32  type mockConstructorTestingTNewConstraintEngine interface {
    33  	mock.TestingT
    34  	Cleanup(func())
    35  }
    36  
    37  // NewConstraintEngine creates a new instance of ConstraintEngine. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    38  func NewConstraintEngine(t mockConstructorTestingTNewConstraintEngine) *ConstraintEngine {
    39  	mock := &ConstraintEngine{}
    40  	mock.Mock.Test(t)
    41  
    42  	t.Cleanup(func() { mock.AssertExpectations(t) })
    43  
    44  	return mock
    45  }