github.com/yandex/pandora@v0.5.32/core/mocks/schedule.go (about)

     1  // Code generated by mockery v2.20.2. DO NOT EDIT.
     2  
     3  package coremock
     4  
     5  import (
     6  	time "time"
     7  
     8  	mock "github.com/stretchr/testify/mock"
     9  )
    10  
    11  // Schedule is an autogenerated mock type for the Schedule type
    12  type Schedule struct {
    13  	mock.Mock
    14  }
    15  
    16  // Left provides a mock function with given fields:
    17  func (_m *Schedule) Left() int {
    18  	ret := _m.Called()
    19  
    20  	var r0 int
    21  	if rf, ok := ret.Get(0).(func() int); ok {
    22  		r0 = rf()
    23  	} else {
    24  		r0 = ret.Get(0).(int)
    25  	}
    26  
    27  	return r0
    28  }
    29  
    30  // Next provides a mock function with given fields:
    31  func (_m *Schedule) Next() (time.Time, bool) {
    32  	ret := _m.Called()
    33  
    34  	var r0 time.Time
    35  	var r1 bool
    36  	if rf, ok := ret.Get(0).(func() (time.Time, bool)); ok {
    37  		return rf()
    38  	}
    39  	if rf, ok := ret.Get(0).(func() time.Time); ok {
    40  		r0 = rf()
    41  	} else {
    42  		r0 = ret.Get(0).(time.Time)
    43  	}
    44  
    45  	if rf, ok := ret.Get(1).(func() bool); ok {
    46  		r1 = rf()
    47  	} else {
    48  		r1 = ret.Get(1).(bool)
    49  	}
    50  
    51  	return r0, r1
    52  }
    53  
    54  // Start provides a mock function with given fields: startAt
    55  func (_m *Schedule) Start(startAt time.Time) {
    56  	_m.Called(startAt)
    57  }
    58  
    59  type mockConstructorTestingTNewSchedule interface {
    60  	mock.TestingT
    61  	Cleanup(func())
    62  }
    63  
    64  // NewSchedule creates a new instance of Schedule. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    65  func NewSchedule(t mockConstructorTestingTNewSchedule) *Schedule {
    66  	mock := &Schedule{}
    67  	mock.Mock.Test(t)
    68  
    69  	t.Cleanup(func() { mock.AssertExpectations(t) })
    70  
    71  	return mock
    72  }