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

Function TestEditorOpenFS

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

Source from the content-addressed store, hash-verified

43var myFile embed.FS
44
45func TestEditorOpenFS(t *testing.T) {
46 b := core.NewBody()
47 errors.Log(NewEditor(b).Buffer.OpenFS(myFile, "editor.go"))
48 b.AssertRender(t, "open-fs")
49}
50
51func TestEditorOpen(t *testing.T) {
52 b := core.NewBody()

Callers

nothing calls this directly

Calls 5

AssertRenderMethod · 0.95
NewBodyFunction · 0.92
LogFunction · 0.92
NewEditorFunction · 0.85
OpenFSMethod · 0.45

Tested by

no test coverage detected