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

Method ThatFloat

core/assert/float.go:25–27  ·  view source on GitHub ↗

ThatFloat returns an OnFloat for floating point based assertions.

(value float64)

Source from the content-addressed store, hash-verified

23
24// ThatFloat returns an OnFloat for floating point based assertions.
25func (a Assertion) ThatFloat(value float64) OnFloat {
26 return OnFloat{Assertion: a, value: value}
27}
28
29// IsAtLeast asserts that the float is at least the supplied minimum.
30func (o OnFloat) IsAtLeast(min float64) bool {

Callers 3

ExampleFloatFunction · 0.80
checkImageFunction · 0.80
TestVertexConvertFunction · 0.80

Calls

no outgoing calls

Tested by 2

ExampleFloatFunction · 0.64
TestVertexConvertFunction · 0.64