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

Function TestJournalViewInitFetchesEntry

internal/tui/journal_test.go:18–27  ·  view source on GitHub ↗

--- Init ---

(t *testing.T)

Source from the content-addressed store, hash-verified

16)
17
18func currentJournalResult(v *journalView) requestResult {
19 return requestResult{requestID: v.requests.id}
20}
21
22func journalEntries(count int) []journalSummary {
23 entries := make([]journalSummary, count)
24 for index := range count {
25 starts := time.Now().AddDate(0, 0, -index)
26 entries[index] = journalSummary{
27 ID: int64(index + 1),
28 Date: starts.Format("2006-01-02"),
29 Starts: starts,
30 Preview: "Reflection from the day",

Callers

nothing calls this directly

Calls 4

newJournalViewFunction · 0.85
testVCFunction · 0.85
InitMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected