driveProvWiz feeds key events into the provider wizard model, same pattern as the launch wizard's drive helper.
(t *testing.T, m providerWizardModel, keys ...string)
| 10 | // driveProvWiz feeds key events into the provider wizard model, same pattern |
| 11 | // as the launch wizard's drive helper. |
| 12 | func driveProvWiz(t *testing.T, m providerWizardModel, keys ...string) providerWizardModel { |
| 13 | t.Helper() |
| 14 | for _, k := range keys { |
| 15 | next, _ := m.Update(keyEvent(k)) |
| 16 | m = next.(providerWizardModel) |
| 17 | } |
| 18 | return m |
| 19 | } |
| 20 | |
| 21 | // typeKeys returns key event strings for each character in s. |
| 22 | func typeKeys(s string) []string { |
no test coverage detected