MCPcopy Create free account
hub / github.com/cli/cli / updateBrowseModel

Function updateBrowseModel

pkg/cmd/extension/browse/model_test.go:884–891  ·  view source on GitHub ↗
(t *testing.T, model *browseModel, msg tea.Msg)

Source from the content-addressed store, hash-verified

882}
883
884func 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
893type readmeLoaderStub struct {
894 content map[string]string

Calls 2

HelperMethod · 0.65
UpdateMethod · 0.65

Tested by

no test coverage detected