• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lightningnetwork / lnd / 13481548301

23 Feb 2025 09:06AM UTC coverage: 4.031% (-54.8%) from 58.825%
13481548301

Pull #9521

github

web-flow
Merge 1ffbe99fe into 5fe900d18
Pull Request #9521: unit: remove GOACC, use Go 1.20 native coverage functionality

2852 of 70750 relevant lines covered (4.03%)

0.92 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/clock/default_clock.go
1
package clock
2

3
import (
4
        "time"
5
)
6

7
// DefaultClock implements Clock interface by simply calling the appropriate
8
// time functions.
9
type DefaultClock struct{}
10

11
// NewDefaultClock constructs a new DefaultClock.
12
func NewDefaultClock() Clock {
×
13
        return &DefaultClock{}
×
14
}
×
15

16
// Now simply returns time.Now().
17
func (DefaultClock) Now() time.Time {
×
18
        return time.Now()
×
19
}
×
20

21
// TickAfter simply wraps time.After().
22
func (DefaultClock) TickAfter(duration time.Duration) <-chan time.Time {
×
23
        return time.After(duration)
×
24
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc