(ctx context.Context, doc *Document, revid string)
| 65 | } |
| 66 | |
| 67 | func (t *testBackingStore) getRevision(ctx context.Context, doc *Document, revid string) ([]byte, AttachmentsMeta, base.Set, error) { |
| 68 | t.getRevisionCounter.Add(1) |
| 69 | |
| 70 | revTreeID := doc.GetRevTreeID() |
| 71 | ch, _ := doc.channelsForRevTreeID(revTreeID) |
| 72 | b := Body{ |
| 73 | "testing": true, |
| 74 | BodyId: doc.ID, |
| 75 | BodyRev: revTreeID, |
| 76 | BodyRevisions: Revisions{RevisionsStart: 1}, |
| 77 | } |
| 78 | if doc.HLV != nil { |
| 79 | b[BodyCV] = doc.HLV.GetCurrentVersionString() |
| 80 | } |
| 81 | bodyBytes, err := base.JSONMarshal(b) |
| 82 | return bodyBytes, nil, ch, err |
| 83 | } |
| 84 | |
| 85 | func (t *testBackingStore) getCurrentVersion(ctx context.Context, doc *Document, cv Version, loadBackup bool) ([]byte, AttachmentsMeta, base.Set, bool, error) { |
| 86 | t.getRevisionCounter.Add(1) |
nothing calls this directly
no test coverage detected