MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / drive

Function drive

internal/cli/launch_wizard_test.go:157–165  ·  view source on GitHub ↗
(t *testing.T, m launchWizardModel, keys ...string)

Source from the content-addressed store, hash-verified

155}
156
157func drive(t *testing.T, m launchWizardModel, keys ...string) launchWizardModel {
158 t.Helper()
159 for _, k := range keys {
160 next, cmd := m.Update(keyEvent(k))
161 m = next.(launchWizardModel)
162 _ = cmd
163 }
164 return m
165}
166
167func TestPickerStep_DefaultPickerShowsAllItems(t *testing.T) {
168 items := numberedModels("model", 20)

Calls 2

keyEventFunction · 0.85
UpdateMethod · 0.45

Tested by

no test coverage detected