(t *testing.T)
| 166 | // --- Init --- |
| 167 | |
| 168 | func TestMailViewInitFetchesBoxes(t *testing.T) { |
| 169 | v := newMailView(testVC()) |
| 170 | cmd := v.Init() |
| 171 | if cmd == nil { |
| 172 | t.Fatal("Init with no boxes should return a fetch command") |
| 173 | } |
| 174 | if !v.requests.loading { |
| 175 | t.Error("Init should set loading = true") |
| 176 | } |
| 177 | } |
| 178 |
nothing calls this directly
no test coverage detected