MCPcopy Create free account
hub / github.com/cogentcore/core / TestBindMeter

Function TestBindMeter

core/value_test.go:61–65  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

59}
60
61func TestBindMeter(t *testing.T) {
62 b := NewBody()
63 Bind(15*time.Second, NewMeter(b)).SetMin(float32(time.Second)).SetMax(float32(time.Minute))
64 b.AssertRender(t, "bind/meter")
65}
66
67func TestBindText(t *testing.T) {
68 b := NewBody()

Callers

nothing calls this directly

Calls 6

AssertRenderMethod · 0.95
NewBodyFunction · 0.85
BindFunction · 0.85
NewMeterFunction · 0.85
SetMaxMethod · 0.45
SetMinMethod · 0.45

Tested by

no test coverage detected