(t *testing.T)
| 212 | m.mailView.requests.kind = mailRequestTopic |
| 213 | updated, _ = m.Update(topicLoadedMsg{ |
| 214 | requestID: 7, |
| 215 | boxID: 1, |
| 216 | topicID: 100, |
| 217 | title: "Quarterly planning", |
| 218 | entries: []mail.Entry{{ID: 501, Creator: mail.Contact{Name: "Alice"}}}, |
| 219 | attachments: []messageAttachment{{ID: "501:1", MessageID: 501, Filename: "agenda.pdf"}}, |
| 220 | }) |
| 221 | m = updated.(model) |
| 222 | |
| 223 | wantHeight := m.height - headerHeight - m.help.height() - 3 |
| 224 | if wantHeight < 1 { |
| 225 | wantHeight = 1 |
| 226 | } |
nothing calls this directly
no test coverage detected