(t *testing.T)
| 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. |
| 31 | func currentJournalRequest(v *journalView) requestResult { |
| 32 | return requestResult{requestID: v.requests.id} |
| 33 | } |
| 34 | |
| 35 | // --- Init --- |
| 36 | |
| 37 | func 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 | } |
nothing calls this directly
no test coverage detected