MCPcopy
hub / github.com/jesseduffield/lazygit / TestFlushContentOnly_WritesCorrectContent

Function TestFlushContentOnly_WritesCorrectContent

pkg/gocui/flush_test.go:74–82  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

72}
73
74func TestFlushContentOnly_WritesCorrectContent(t *testing.T) {
75 g := newTestGui(t)
76 status, _ := setupViews(t, g)
77
78 status.SetContent("Fetching |")
79 assert.NoError(t, g.flushContentOnly(g.views))
80
81 assert.Equal(t, "Fetching |", status.Buffer())
82}
83
84func TestProcessEvent_ContentOnlyEvent_SkipsTaintedCheck(t *testing.T) {
85 g := newTestGui(t)

Callers

nothing calls this directly

Calls 5

newTestGuiFunction · 0.85
setupViewsFunction · 0.85
flushContentOnlyMethod · 0.80
BufferMethod · 0.80
SetContentMethod · 0.65

Tested by

no test coverage detected