MCPcopy Index your code
hub / github.com/perkeep/perkeep / addToClockOrigin

Function addToClockOrigin

pkg/search/handler_test.go:90–92  ·  view source on GitHub ↗

addToClockOrigin returns the given Duration added to test.ClockOrigin, in UTC, and RFC3339Nano formatted.

(d time.Duration)

Source from the content-addressed store, hash-verified

88// addToClockOrigin returns the given Duration added
89// to test.ClockOrigin, in UTC, and RFC3339Nano formatted.
90func addToClockOrigin(d time.Duration) string {
91 return test.ClockOrigin.Add(d).UTC().Format(time.RFC3339Nano)
92}
93
94func init() {
95 ownerRef = indextest.PubKey

Callers 1

initTestsFunction · 0.85

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected