MCPcopy
hub / github.com/google/mangle / makeTestInterval

Function makeTestInterval

factstore/interval_tree_test.go:330–335  ·  view source on GitHub ↗

makeInterval creates an interval from start and end nanoseconds.

(startNano, endNano int64)

Source from the content-addressed store, hash-verified

328
329// makeInterval creates an interval from start and end nanoseconds.
330func makeTestInterval(startNano, endNano int64) ast.Interval {
331 return ast.NewInterval(
332 ast.TemporalBound{Type: ast.TimestampBound, Timestamp: startNano},
333 ast.TemporalBound{Type: ast.TimestampBound, Timestamp: endNano},
334 )
335}

Calls 1

NewIntervalFunction · 0.92

Tested by

no test coverage detected