+2
-2
lex/util/lex_interop_old_test.go
+2
-2
lex/util/lex_interop_old_test.go
···
91
91
assert.NoError(goObj.MarshalCBOR(goCborBytes))
92
92
assert.Equal(cborBytes, goCborBytes.Bytes())
93
93
// 0x71 = dag-cbor, 0x12 = sha2-256, 0 = default length
94
-
cidBuilder := cid.V1Builder{0x71, 0x12, 0}
94
+
cidBuilder := cid.V1Builder{Codec: 0x71, MhType: 0x12, MhLength: 0}
95
95
goCborCid, err := cidBuilder.Sum(goCborBytes.Bytes())
96
96
assert.NoError(err)
97
97
assert.Equal(cidStr, goCborCid.String())
···
156
156
assert.NoError(goObj.MarshalCBOR(goCborBytes))
157
157
assert.Equal(cborBytes, goCborBytes.Bytes())
158
158
// 0x71 = dag-cbor, 0x12 = sha2-256, 0 = default length
159
-
cidBuilder := cid.V1Builder{0x71, 0x12, 0}
159
+
cidBuilder := cid.V1Builder{Codec: 0x71, MhType: 0x12, MhLength: 0}
160
160
goCborCid, err := cidBuilder.Sum(goCborBytes.Bytes())
161
161
assert.NoError(err)
162
162
assert.Equal(cidStr, goCborCid.String())
+3
-3
lex/util/lex_interop_test.go
+3
-3
lex/util/lex_interop_test.go
···
122
122
assert.NoError(goObj.MarshalCBOR(goCborBytes))
123
123
assert.Equal(cborBytes, goCborBytes.Bytes())
124
124
// 0x71 = dag-cbor, 0x12 = sha2-256, 0 = default length
125
-
cidBuilder := cid.V1Builder{0x71, 0x12, 0}
125
+
cidBuilder := cid.V1Builder{Codec: 0x71, MhType: 0x12, MhLength: 0}
126
126
goCborCid, err := cidBuilder.Sum(goCborBytes.Bytes())
127
127
assert.NoError(err)
128
128
assert.Equal(cidStr, goCborCid.String())
···
208
208
assert.NoError(goObj.MarshalCBOR(goCborBytes))
209
209
assert.Equal(cborBytes, goCborBytes.Bytes())
210
210
// 0x71 = dag-cbor, 0x12 = sha2-256, 0 = default length
211
-
cidBuilder := cid.V1Builder{0x71, 0x12, 0}
211
+
cidBuilder := cid.V1Builder{Codec: 0x71, MhType: 0x12, MhLength: 0}
212
212
goCborCid, err := cidBuilder.Sum(goCborBytes.Bytes())
213
213
assert.NoError(err)
214
214
assert.Equal(cidStr, goCborCid.String())
···
314
314
assert.NoError(goObj.MarshalCBOR(goCborBytes))
315
315
assert.Equal(cborBytes, goCborBytes.Bytes())
316
316
// 0x71 = dag-cbor, 0x12 = sha2-256, 0 = default length
317
-
cidBuilder := cid.V1Builder{ 0x71, 0x12, 0 }
317
+
cidBuilder := cid.V1Builder{Codec: 0x71, MhType: 0x12, MhLength: 0}
318
318
goCborCid, err := cidBuilder.Sum(goCborBytes.Bytes())
319
319
assert.NoError(err)
320
320
assert.Equal(cidStr, goCborCid.String())
+1
-1
testing/car_did_repro_test.go
+1
-1
testing/car_did_repro_test.go
···
106
106
func reproduceRecord(t *testing.T, path string, c cid.Cid, rec cbg.CBORMarshaler) {
107
107
assert := assert.New(t)
108
108
// 0x71 = dag-cbor, 0x12 = sha2-256, 0 = default length
109
-
cidBuilder := cid.V1Builder{0x71, 0x12, 0}
109
+
cidBuilder := cid.V1Builder{Codec: 0x71, MhType: 0x12, MhLength: 0}
110
110
recordCBOR := new(bytes.Buffer)
111
111
nsid := strings.SplitN(path, "/", 2)[0]
112
112
+1
-1
testing/feedpost_test.go
+1
-1
testing/feedpost_test.go
···
150
150
// checks a corner-case with $type: "app.bsky.richtext.facet#link"
151
151
func TestFeedPostRichtextLink(t *testing.T) {
152
152
assert := assert.New(t)
153
-
cidBuilder := cid.V1Builder{0x71, 0x12, 0}
153
+
cidBuilder := cid.V1Builder{Codec: 0x71, MhType: 0x12, MhLength: 0}
154
154
155
155
// this is a app.bsky.feed.post with richtext link
156
156
inFile, err := os.Open("testdata/post_richtext_link.cbor")