github.com/go-kivik/kivik/v4@v4.3.2/x/fsdb/cdb/testdata/TestDocumentPersist_update_existing_doc_with_attachments (about) 1 (*cdb.Document)({ 2 ID: (string) (len=3) "bar", 3 Revisions: (cdb.Revisions) (len=2) { 4 (*cdb.Revision)({ 5 RevMeta: (cdb.RevMeta) { 6 Rev: (cdb.RevID) { 7 Seq: (int64) 2, 8 Sum: (string) (len=32) "1963dc3c4e4d057b047b7d3675358757", 9 original: (string) "" 10 }, 11 Deleted: (*bool)(<nil>), 12 Attachments: (map[string]*cdb.Attachment) (len=2) { 13 (string) (len=7) "bar.txt": (*cdb.Attachment)({ 14 ContentType: (string) (len=10) "text/plain", 15 RevPos: (*int64)(2), 16 Stub: (bool) false, 17 Follows: (bool) false, 18 Content: ([]uint8) <nil>, 19 Size: (int64) 18, 20 Digest: (string) (len=28) "md5-gnmB5zRLleRxMgtaAnivSw==", 21 path: (string) (len=X) "<tmpdir>/bar/bar.txt", 22 fs: (*filesystem.defaultFS)({ 23 }), 24 outputStub: (bool) true 25 }), 26 (string) (len=7) "foo.txt": (*cdb.Attachment)({ 27 ContentType: (string) (len=10) "text/plain", 28 RevPos: (*int64)(1), 29 Stub: (bool) true, 30 Follows: (bool) false, 31 Content: ([]uint8) <nil>, 32 Size: (int64) 0, 33 Digest: (string) "", 34 path: (string) "", 35 fs: (*filesystem.defaultFS)({ 36 }), 37 outputStub: (bool) true 38 }) 39 }, 40 RevHistory: (*cdb.RevHistory)({ 41 Start: (int64) 2, 42 IDs: ([]string) (len=2) { 43 (string) (len=32) "1963dc3c4e4d057b047b7d3675358757", 44 (string) (len=3) "xxx" 45 } 46 }), 47 isMain: (bool) false, 48 path: (string) (len=X) "<tmpdir>/bar.json", 49 fs: (*filesystem.defaultFS)({ 50 }) 51 }, 52 Data: (map[string]interface {}) (len=1) { 53 (string) (len=5) "value": (string) (len=3) "bar" 54 }, 55 options: (map[string]interface {}) (len=1) { 56 (string) (len=4) "revs": (bool) true 57 } 58 }), 59 (*cdb.Revision)({ 60 RevMeta: (cdb.RevMeta) { 61 Rev: (cdb.RevID) { 62 Seq: (int64) 1, 63 Sum: (string) (len=3) "xxx", 64 original: (string) (len=5) "1-xxx" 65 }, 66 Deleted: (*bool)(<nil>), 67 Attachments: (map[string]*cdb.Attachment) (len=1) { 68 (string) (len=7) "foo.txt": (*cdb.Attachment)({ 69 ContentType: (string) (len=10) "text/plain", 70 RevPos: (*int64)(1), 71 Stub: (bool) false, 72 Follows: (bool) false, 73 Content: ([]uint8) <nil>, 74 Size: (int64) 13, 75 Digest: (string) (len=28) "md5-EMUuEXyjHv9UCGbpjbnwxQ==", 76 path: (string) (len=X) "<tmpdir>/bar/foo.txt", 77 fs: (*filesystem.defaultFS)({ 78 }), 79 outputStub: (bool) false 80 }) 81 }, 82 RevHistory: (*cdb.RevHistory)({ 83 Start: (int64) 1, 84 IDs: ([]string) (len=1) { 85 (string) (len=3) "xxx" 86 } 87 }), 88 isMain: (bool) true, 89 path: (string) (len=X) "<tmpdir>/bar.yaml", 90 fs: (*filesystem.defaultFS)({ 91 }) 92 }, 93 Data: (map[string]interface {}) { 94 }, 95 options: (map[string]interface {}) <nil> 96 }) 97 }, 98 RevsInfo: ([]cdb.RevInfo) <nil>, 99 RevHistory: (*cdb.RevHistory)(<nil>), 100 Options: (map[string]interface {}) <nil>, 101 cdb: (*cdb.FS)({ 102 fs: (*filesystem.defaultFS)({ 103 }), 104 root: (string) (len=X) "<tmpdir>" 105 }) 106 })