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

Function TestEditorSetText

texteditor/editor_test.go:25–29  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

23}
24
25func TestEditorSetText(t *testing.T) {
26 b := core.NewBody()
27 NewEditor(b).Buffer.SetString("Hello, world!")
28 b.AssertRender(t, "set-text")
29}
30
31func TestEditorSetLanguage(t *testing.T) {
32 b := core.NewBody()

Callers

nothing calls this directly

Calls 4

AssertRenderMethod · 0.95
NewBodyFunction · 0.92
NewEditorFunction · 0.85
SetStringMethod · 0.65

Tested by

no test coverage detected