(t *testing.T)
| 29 | } |
| 30 | |
| 31 | func TestEditorSetLanguage(t *testing.T) { |
| 32 | b := core.NewBody() |
| 33 | NewEditor(b).Buffer.SetLanguage(fileinfo.Go).SetString(`package main |
| 34 | |
| 35 | func main() { |
| 36 | fmt.Println("Hello, world!") |
| 37 | } |
| 38 | `) |
| 39 | b.AssertRender(t, "set-lang") |
| 40 | } |
| 41 | |
| 42 | //go:embed editor.go |
| 43 | var myFile embed.FS |
nothing calls this directly
no test coverage detected