(t *testing.T, model *browseModel, msg tea.Msg)
| 882 | } |
| 883 | |
| 884 | func updateBrowseModel(t *testing.T, model *browseModel, msg tea.Msg) tea.Cmd { |
| 885 | t.Helper() |
| 886 | updated, cmd := model.Update(msg) |
| 887 | got, ok := updated.(*browseModel) |
| 888 | require.True(t, ok, "expected the updated model to remain a browse model") |
| 889 | require.Same(t, model, got) |
| 890 | return cmd |
| 891 | } |
| 892 | |
| 893 | type readmeLoaderStub struct { |
| 894 | content map[string]string |
no test coverage detected