github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/pkg/operation/automock/scheduler.go (about)

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