(statusCode int, body string)
| 1185 | t *testing.T |
| 1186 | callCountPublishSearchConfigurationChanged int |
| 1187 | publishSearchConfigurationChangedCfg *MockPublishSearchConfigurationChangedConfig |
| 1188 | } |
| 1189 | |
| 1190 | func (m *MockEventPublisher) PublishSearchConfigurationChanged( |
| 1191 | _ context.Context, |
| 1192 | resp *backend.SavedSearchResponse, |
| 1193 | userID string, |
| 1194 | isCreation bool) error { |
| 1195 | m.callCountPublishSearchConfigurationChanged++ |
| 1196 | if !reflect.DeepEqual(resp, m.publishSearchConfigurationChangedCfg.expectedResp) { |
| 1197 | m.t.Errorf("unexpected response %+v", resp) |
| 1198 | } |
| 1199 | if userID != m.publishSearchConfigurationChangedCfg.expectedUserID { |
no outgoing calls
no test coverage detected