go.mway.dev/chrono@v0.6.1-0.20240126030049-189c5aef20d2/clock/clockmock/clock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: go.mway.dev/chrono/clock (interfaces: Clock)
     3  
     4  // Package clockmock is a generated GoMock package.
     5  package clockmock
     6  
     7  import (
     8  	reflect "reflect"
     9  	time "time"
    10  
    11  	gomock "github.com/golang/mock/gomock"
    12  	clock "go.mway.dev/chrono/clock"
    13  )
    14  
    15  // MockClock is a mock of Clock interface.
    16  type MockClock struct {
    17  	ctrl     *gomock.Controller
    18  	recorder *MockClockMockRecorder
    19  }
    20  
    21  // MockClockMockRecorder is the mock recorder for MockClock.
    22  type MockClockMockRecorder struct {
    23  	mock *MockClock
    24  }
    25  
    26  // NewMockClock creates a new mock instance.
    27  func NewMockClock(ctrl *gomock.Controller) *MockClock {
    28  	mock := &MockClock{ctrl: ctrl}
    29  	mock.recorder = &MockClockMockRecorder{mock}
    30  	return mock
    31  }
    32  
    33  // EXPECT returns an object that allows the caller to indicate expected use.
    34  func (m *MockClock) EXPECT() *MockClockMockRecorder {
    35  	return m.recorder
    36  }
    37  
    38  // After mocks base method.
    39  func (m *MockClock) After(arg0 time.Duration) <-chan time.Time {
    40  	m.ctrl.T.Helper()
    41  	ret := m.ctrl.Call(m, "After", arg0)
    42  	ret0, _ := ret[0].(<-chan time.Time)
    43  	return ret0
    44  }
    45  
    46  // After indicates an expected call of After.
    47  func (mr *MockClockMockRecorder) After(arg0 interface{}) *gomock.Call {
    48  	mr.mock.ctrl.T.Helper()
    49  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "After", reflect.TypeOf((*MockClock)(nil).After), arg0)
    50  }
    51  
    52  // AfterFunc mocks base method.
    53  func (m *MockClock) AfterFunc(arg0 time.Duration, arg1 func()) *clock.Timer {
    54  	m.ctrl.T.Helper()
    55  	ret := m.ctrl.Call(m, "AfterFunc", arg0, arg1)
    56  	ret0, _ := ret[0].(*clock.Timer)
    57  	return ret0
    58  }
    59  
    60  // AfterFunc indicates an expected call of AfterFunc.
    61  func (mr *MockClockMockRecorder) AfterFunc(arg0, arg1 interface{}) *gomock.Call {
    62  	mr.mock.ctrl.T.Helper()
    63  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AfterFunc", reflect.TypeOf((*MockClock)(nil).AfterFunc), arg0, arg1)
    64  }
    65  
    66  // Nanotime mocks base method.
    67  func (m *MockClock) Nanotime() int64 {
    68  	m.ctrl.T.Helper()
    69  	ret := m.ctrl.Call(m, "Nanotime")
    70  	ret0, _ := ret[0].(int64)
    71  	return ret0
    72  }
    73  
    74  // Nanotime indicates an expected call of Nanotime.
    75  func (mr *MockClockMockRecorder) Nanotime() *gomock.Call {
    76  	mr.mock.ctrl.T.Helper()
    77  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Nanotime", reflect.TypeOf((*MockClock)(nil).Nanotime))
    78  }
    79  
    80  // NewStopwatch mocks base method.
    81  func (m *MockClock) NewStopwatch() *clock.Stopwatch {
    82  	m.ctrl.T.Helper()
    83  	ret := m.ctrl.Call(m, "NewStopwatch")
    84  	ret0, _ := ret[0].(*clock.Stopwatch)
    85  	return ret0
    86  }
    87  
    88  // NewStopwatch indicates an expected call of NewStopwatch.
    89  func (mr *MockClockMockRecorder) NewStopwatch() *gomock.Call {
    90  	mr.mock.ctrl.T.Helper()
    91  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewStopwatch", reflect.TypeOf((*MockClock)(nil).NewStopwatch))
    92  }
    93  
    94  // NewTicker mocks base method.
    95  func (m *MockClock) NewTicker(arg0 time.Duration) *clock.Ticker {
    96  	m.ctrl.T.Helper()
    97  	ret := m.ctrl.Call(m, "NewTicker", arg0)
    98  	ret0, _ := ret[0].(*clock.Ticker)
    99  	return ret0
   100  }
   101  
   102  // NewTicker indicates an expected call of NewTicker.
   103  func (mr *MockClockMockRecorder) NewTicker(arg0 interface{}) *gomock.Call {
   104  	mr.mock.ctrl.T.Helper()
   105  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewTicker", reflect.TypeOf((*MockClock)(nil).NewTicker), arg0)
   106  }
   107  
   108  // NewTimer mocks base method.
   109  func (m *MockClock) NewTimer(arg0 time.Duration) *clock.Timer {
   110  	m.ctrl.T.Helper()
   111  	ret := m.ctrl.Call(m, "NewTimer", arg0)
   112  	ret0, _ := ret[0].(*clock.Timer)
   113  	return ret0
   114  }
   115  
   116  // NewTimer indicates an expected call of NewTimer.
   117  func (mr *MockClockMockRecorder) NewTimer(arg0 interface{}) *gomock.Call {
   118  	mr.mock.ctrl.T.Helper()
   119  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewTimer", reflect.TypeOf((*MockClock)(nil).NewTimer), arg0)
   120  }
   121  
   122  // Now mocks base method.
   123  func (m *MockClock) Now() time.Time {
   124  	m.ctrl.T.Helper()
   125  	ret := m.ctrl.Call(m, "Now")
   126  	ret0, _ := ret[0].(time.Time)
   127  	return ret0
   128  }
   129  
   130  // Now indicates an expected call of Now.
   131  func (mr *MockClockMockRecorder) Now() *gomock.Call {
   132  	mr.mock.ctrl.T.Helper()
   133  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Now", reflect.TypeOf((*MockClock)(nil).Now))
   134  }
   135  
   136  // Since mocks base method.
   137  func (m *MockClock) Since(arg0 time.Time) time.Duration {
   138  	m.ctrl.T.Helper()
   139  	ret := m.ctrl.Call(m, "Since", arg0)
   140  	ret0, _ := ret[0].(time.Duration)
   141  	return ret0
   142  }
   143  
   144  // Since indicates an expected call of Since.
   145  func (mr *MockClockMockRecorder) Since(arg0 interface{}) *gomock.Call {
   146  	mr.mock.ctrl.T.Helper()
   147  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Since", reflect.TypeOf((*MockClock)(nil).Since), arg0)
   148  }
   149  
   150  // SinceNanotime mocks base method.
   151  func (m *MockClock) SinceNanotime(arg0 int64) time.Duration {
   152  	m.ctrl.T.Helper()
   153  	ret := m.ctrl.Call(m, "SinceNanotime", arg0)
   154  	ret0, _ := ret[0].(time.Duration)
   155  	return ret0
   156  }
   157  
   158  // SinceNanotime indicates an expected call of SinceNanotime.
   159  func (mr *MockClockMockRecorder) SinceNanotime(arg0 interface{}) *gomock.Call {
   160  	mr.mock.ctrl.T.Helper()
   161  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SinceNanotime", reflect.TypeOf((*MockClock)(nil).SinceNanotime), arg0)
   162  }
   163  
   164  // Sleep mocks base method.
   165  func (m *MockClock) Sleep(arg0 time.Duration) {
   166  	m.ctrl.T.Helper()
   167  	m.ctrl.Call(m, "Sleep", arg0)
   168  }
   169  
   170  // Sleep indicates an expected call of Sleep.
   171  func (mr *MockClockMockRecorder) Sleep(arg0 interface{}) *gomock.Call {
   172  	mr.mock.ctrl.T.Helper()
   173  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Sleep", reflect.TypeOf((*MockClock)(nil).Sleep), arg0)
   174  }
   175  
   176  // Tick mocks base method.
   177  func (m *MockClock) Tick(arg0 time.Duration) <-chan time.Time {
   178  	m.ctrl.T.Helper()
   179  	ret := m.ctrl.Call(m, "Tick", arg0)
   180  	ret0, _ := ret[0].(<-chan time.Time)
   181  	return ret0
   182  }
   183  
   184  // Tick indicates an expected call of Tick.
   185  func (mr *MockClockMockRecorder) Tick(arg0 interface{}) *gomock.Call {
   186  	mr.mock.ctrl.T.Helper()
   187  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Tick", reflect.TypeOf((*MockClock)(nil).Tick), arg0)
   188  }