MCPcopy Create free account
hub / github.com/basecamp/hey-cli / TestInitReturnsCmd

Function TestInitReturnsCmd

internal/tui/tui_test.go:101–107  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

99 m := testModel()
100 if m.section != sectionMail {
101 t.Errorf("initial section = %d, want sectionMail", m.section)
102 }
103 if m.focus != rowContent {
104 t.Errorf("initial focus = %d, want rowContent", m.focus)
105 }
106 if !m.loading {
107 t.Error("loading should be true initially")
108 }
109}
110

Callers

nothing calls this directly

Calls 2

testModelFunction · 0.85
InitMethod · 0.65

Tested by

no test coverage detected