(docID string, revID string, body Body, deleted bool, expiry uint32)
| 823 | } |
| 824 | |
| 825 | func CreateTestDocument(docID string, revID string, body Body, deleted bool, expiry uint32) (newDoc *Document) { |
| 826 | newDoc = &Document{ |
| 827 | ID: docID, |
| 828 | Deleted: deleted, |
| 829 | DocExpiry: expiry, |
| 830 | RevID: revID, |
| 831 | _body: body, |
| 832 | } |
| 833 | return newDoc |
| 834 | } |
| 835 | |
| 836 | // requireCurrentVersion fetches the document by key, and validates that cv matches. |
| 837 | func (c *DatabaseCollection) RequireCurrentVersion(t *testing.T, key string, source string, version uint64) { |
no outgoing calls