MCPcopy Index your code
hub / github.com/cabify/timex / Implementation

Interface Implementation

implementation.go:8–20  ·  view source on GitHub ↗

Implementation defines the methods we delegate

Source from the content-addressed store, hash-verified

6
7// Implementation defines the methods we delegate
8type Implementation interface {
9 Now() time.Time
10 Since(t time.Time) time.Duration
11 Until(t time.Time) time.Duration
12
13 Sleep(d time.Duration)
14
15 After(d time.Duration) <-chan time.Time
16 AfterFunc(d time.Duration, f func()) Timer
17
18 NewTicker(d time.Duration) Ticker
19 NewTimer(d time.Duration) Timer
20}
21
22//go:generate mockery -case underscore -outpkg timexmock -output timexmock -name Implementation
23var _ Implementation = Default{}

Callers 42

NowFunction · 0.65
TestSinceFunction · 0.65
TestUntilFunction · 0.65
TestDefault_NowFunction · 0.65
TestDefault_SinceFunction · 0.65
TestDefault_UntilFunction · 0.65
NowMethod · 0.65
NowFunction · 0.65
SinceFunction · 0.65
TestNowFunction · 0.65
TestDefault_NowFunction · 0.65
TestDefault_SinceFunction · 0.65

Implementers 3

Defaultdefault.go
TestImplementationtimextest/test_implementation.go
Implementationtimexmock/implementation.go

Calls

no outgoing calls

Tested by

no test coverage detected