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

Function TestJournalViewInitSelectsToday

internal/tui/journal_test.go:29–39  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

27}
28
29// currentJournalRequest tags a response as the answer to the read the journal is
30// waiting on, the way the fetch command that started it would.
31func currentJournalRequest(v *journalView) requestResult {
32 return requestResult{requestID: v.requests.id}
33}
34
35// --- Init ---
36
37func TestJournalViewInitFetchesEntry(t *testing.T) {
38 v := newJournalView(testVC())
39 cmd := v.Init()
40 if cmd == nil {
41 t.Fatal("Init should return a fetch command")
42 }

Callers

nothing calls this directly

Calls 3

newJournalViewFunction · 0.85
testVCFunction · 0.85
InitMethod · 0.65

Tested by

no test coverage detected