github.com/ari-anchor/sei-tendermint@v0.0.0-20230519144642-dc826b7b56bb/libs/time/mocks/source.go (about)

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