RequireXattrNotFound asserts that the given xattr is not found on the document.
(t testing.TB, dataStore sgbucket.DataStore, docID string, xattrName string)
| 1009 | |
| 1010 | // RequireXattrNotFound asserts that the given xattr is not found on the document. |
| 1011 | func RequireXattrNotFound(t testing.TB, dataStore sgbucket.DataStore, docID string, xattrName string) { |
| 1012 | xattrs, _, err := dataStore.GetXattrs(TestCtx(t), docID, []string{xattrName}) |
| 1013 | require.Error(t, err, fmt.Sprintf("Expected xattr %q to not be found on document %q but has contents %s", xattrName, docID, xattrs[xattrName])) |
| 1014 | RequireXattrNotFoundError(t, err) |
| 1015 | } |
| 1016 | |
| 1017 | // underGoTest returns true if the tests are being run via 'go test' |
| 1018 | func underGoTest() bool { |