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

Function TestEditorMulti

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

Source from the content-addressed store, hash-verified

55}
56
57func TestEditorMulti(t *testing.T) {
58 b := core.NewBody()
59 tb := NewBuffer().SetString("Hello, world!")
60 NewEditor(b).SetBuffer(tb)
61 NewEditor(b).SetBuffer(tb)
62 b.AssertRender(t, "multi")
63}
64
65func TestEditorChange(t *testing.T) {
66 b := core.NewBody()

Callers

nothing calls this directly

Calls 6

AssertRenderMethod · 0.95
NewBodyFunction · 0.92
NewEditorFunction · 0.85
NewBufferFunction · 0.70
SetStringMethod · 0.65
SetBufferMethod · 0.45

Tested by

no test coverage detected