assertDesignDocDoesNotExist ensures that the design doc does not exist in the dataStore.
(t testing.TB, viewStore sgbucket.ViewStore, ddocName string)
| 32 | |
| 33 | // assertDesignDocDoesNotExist ensures that the design doc does not exist in the dataStore. |
| 34 | func assertDesignDocNotExists(t testing.TB, viewStore sgbucket.ViewStore, ddocName string) bool { |
| 35 | ddoc, err := viewStore.GetDDoc(ddocName) |
| 36 | assert.Error(t, err, "Design doc %s should not exist but but it did: %v", ddocName, ddoc) |
| 37 | return assert.Truef(t, IsMissingDDocError(err), "Design doc %s should not exist but got a different error fetching it: %v", ddocName, err) |
| 38 | } |
no test coverage detected