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

Function EternalInterval

ast/temporal.go:346–351  ·  view source on GitHub ↗

EternalInterval returns an interval representing all time (negative infinity to positive infinity). This is used for facts without temporal annotations.

()

Source from the content-addressed store, hash-verified

344// EternalInterval returns an interval representing all time (negative infinity to positive infinity).
345// This is used for facts without temporal annotations.
346func EternalInterval() Interval {
347 return Interval{
348 Start: NegativeInfinity(),
349 End: PositiveInfinity(),
350 }
351}
352
353// IsEternal returns true if this interval represents all time.
354func (i Interval) IsEternal() bool {

Callers 6

AddEternalMethod · 0.92
TestIntervalContainsFunction · 0.92
TestIntervalFunction · 0.85

Calls 2

NegativeInfinityFunction · 0.85
PositiveInfinityFunction · 0.85

Tested by 5

TestIntervalContainsFunction · 0.74
TestIntervalFunction · 0.68