MCPcopy Create free account
hub / github.com/google/gapid / IsAtLeast

Method IsAtLeast

core/assert/float.go:30–32  ·  view source on GitHub ↗

IsAtLeast asserts that the float is at least the supplied minimum.

(min float64)

Source from the content-addressed store, hash-verified

28
29// IsAtLeast asserts that the float is at least the supplied minimum.
30func (o OnFloat) IsAtLeast(min float64) bool {
31 return o.Compare(o.value, ">=", min).Test(o.value >= min)
32}
33
34// IsAtMost asserts that the float is at most the supplied maximum.
35func (o OnFloat) IsAtMost(max float64) bool {

Callers 5

TestArenaStatsFunction · 0.45
ExampleIntegerFunction · 0.45
ExampleFloatFunction · 0.45
ExampleTimeFunction · 0.45
TestMemoryAndGrpcStashFunction · 0.45

Calls 2

TestMethod · 0.80
CompareMethod · 0.45

Tested by 5

TestArenaStatsFunction · 0.36
ExampleIntegerFunction · 0.36
ExampleFloatFunction · 0.36
ExampleTimeFunction · 0.36
TestMemoryAndGrpcStashFunction · 0.36