github.com/goravel/framework@v1.13.9/contracts/schedule/mocks/Schedule.go (about)

     1  // Code generated by mockery v2.14.0. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	schedule "github.com/goravel/framework/contracts/schedule"
     7  	mock "github.com/stretchr/testify/mock"
     8  )
     9  
    10  // Schedule is an autogenerated mock type for the Schedule type
    11  type Schedule struct {
    12  	mock.Mock
    13  }
    14  
    15  // Call provides a mock function with given fields: callback
    16  func (_m *Schedule) Call(callback func()) schedule.Event {
    17  	ret := _m.Called(callback)
    18  
    19  	var r0 schedule.Event
    20  	if rf, ok := ret.Get(0).(func(func()) schedule.Event); ok {
    21  		r0 = rf(callback)
    22  	} else {
    23  		if ret.Get(0) != nil {
    24  			r0 = ret.Get(0).(schedule.Event)
    25  		}
    26  	}
    27  
    28  	return r0
    29  }
    30  
    31  // Command provides a mock function with given fields: command
    32  func (_m *Schedule) Command(command string) schedule.Event {
    33  	ret := _m.Called(command)
    34  
    35  	var r0 schedule.Event
    36  	if rf, ok := ret.Get(0).(func(string) schedule.Event); ok {
    37  		r0 = rf(command)
    38  	} else {
    39  		if ret.Get(0) != nil {
    40  			r0 = ret.Get(0).(schedule.Event)
    41  		}
    42  	}
    43  
    44  	return r0
    45  }
    46  
    47  // Register provides a mock function with given fields: events
    48  func (_m *Schedule) Register(events []schedule.Event) {
    49  	_m.Called(events)
    50  }
    51  
    52  // Run provides a mock function with given fields:
    53  func (_m *Schedule) Run() {
    54  	_m.Called()
    55  }
    56  
    57  type mockConstructorTestingTNewSchedule interface {
    58  	mock.TestingT
    59  	Cleanup(func())
    60  }
    61  
    62  // 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.
    63  func NewSchedule(t mockConstructorTestingTNewSchedule) *Schedule {
    64  	mock := &Schedule{}
    65  	mock.Mock.Test(t)
    66  
    67  	t.Cleanup(func() { mock.AssertExpectations(t) })
    68  
    69  	return mock
    70  }