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

Function TestBindUpdate

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

Source from the content-addressed store, hash-verified

22}
23
24func TestBindUpdate(t *testing.T) {
25 b := NewBody()
26 name := "Gopher"
27 tf := Bind(&name, NewTextField(b))
28 b.AssertRender(t, "bind/update", func() {
29 name = "Cogent Core"
30 tf.Update()
31 })
32}
33
34func TestBindChange(t *testing.T) {
35 b := NewBody()

Callers

nothing calls this directly

Calls 5

AssertRenderMethod · 0.95
NewBodyFunction · 0.85
BindFunction · 0.85
NewTextFieldFunction · 0.85
UpdateMethod · 0.65

Tested by

no test coverage detected