| 124 | } |
| 125 | |
| 126 | func (m *MockPrompter) Verify() { |
| 127 | errs := []string{} |
| 128 | if len(m.authTokenStubs) > 0 { |
| 129 | errs = append(errs, "AuthToken") |
| 130 | } |
| 131 | if len(m.confirmDeletionStubs) > 0 { |
| 132 | errs = append(errs, "ConfirmDeletion") |
| 133 | } |
| 134 | if len(m.inputHostnameStubs) > 0 { |
| 135 | errs = append(errs, "inputHostname") |
| 136 | } |
| 137 | if len(m.markdownEditorStubs) > 0 { |
| 138 | errs = append(errs, "markdownEditorStubs") |
| 139 | } |
| 140 | if len(errs) > 0 { |
| 141 | m.t.Helper() |
| 142 | m.t.Errorf("%d unmatched calls to %s", len(errs), strings.Join(errs, ",")) |
| 143 | } |
| 144 | } |
| 145 | |
| 146 | func AssertOptions(t *testing.T, expected, actual []string) { |
| 147 | assert.Equal(t, expected, actual) |