Debian Codegraph @

export_test.go

raw symbols SCIP
1 package cache
2
3 import "time"
4
5 func SetNowFunc(tm time.Time) (reset func()) {
6 backup := nowFunc
7 nowFunc = func() time.Time { return tm }
8 return func() {
9 nowFunc = backup
10 }
11 }