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

Method IsAtMost

core/assert/float.go:35–37  ·  view source on GitHub ↗

IsAtMost asserts that the float is at most the supplied maximum.

(max float64)

Source from the content-addressed store, hash-verified

33
34// IsAtMost asserts that the float is at most the supplied maximum.
35func (o OnFloat) IsAtMost(max float64) bool {
36 return o.Compare(o.value, "<=", max).Test(o.value <= max)
37}
38
39// Equals asserts that the float equals v with ± tolerance.
40func (o OnFloat) Equals(v, tolerance float64) bool {

Callers 5

ExampleIntegerFunction · 0.45
ExampleFloatFunction · 0.45
ExampleTimeFunction · 0.45
TestSignalTryWaitTimeoutFunction · 0.45
checkImageFunction · 0.45

Calls 2

TestMethod · 0.80
CompareMethod · 0.45

Tested by 4

ExampleIntegerFunction · 0.36
ExampleFloatFunction · 0.36
ExampleTimeFunction · 0.36
TestSignalTryWaitTimeoutFunction · 0.36