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

Function TestValidatorInvalid

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

Source from the content-addressed store, hash-verified

88}
89
90func TestValidatorInvalid(t *testing.T) {
91 b := NewBody()
92 v := Bind(validator("my string"), NewTextField(b))
93 b.AssertRender(t, "bind/validator-invalid", func() {
94 v.SendChange() // trigger validation
95 })
96}

Callers

nothing calls this directly

Calls 6

AssertRenderMethod · 0.95
NewBodyFunction · 0.85
BindFunction · 0.85
validatorTypeAlias · 0.85
NewTextFieldFunction · 0.85
SendChangeMethod · 0.80

Tested by

no test coverage detected