MCPcopy
hub / github.com/moncho/dry / TestLessModel_SetContent

Function TestLessModel_SetContent

appui/overlay_test.go:76–85  ·  view source on GitHub ↗

--- LessModel tests ---

(t *testing.T)

Source from the content-addressed store, hash-verified

74// --- LessModel tests ---
75
76func TestLessModel_SetContent(t *testing.T) {
77 m := NewLessModel()
78 m.SetSize(80, 24)
79 m.SetContent("line1\nline2\nline3", "Test")
80
81 v := m.View()
82 if v == "" {
83 t.Fatal("View() should not be empty after SetContent")
84 }
85}
86
87func TestLessModel_EscCloses(t *testing.T) {
88 m := NewLessModel()

Callers

nothing calls this directly

Calls 4

SetSizeMethod · 0.95
SetContentMethod · 0.95
ViewMethod · 0.95
NewLessModelFunction · 0.85

Tested by

no test coverage detected