Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ld
go-car
Commits
4aefd373
Commit
4aefd373
authored
Dec 03, 2020
by
Marten Seemann
Committed by
Daniel Martí
Dec 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
run gofmt -s
parent
8fe0b741
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
car_test.go
car_test.go
+2
-2
No files found.
car_test.go
View file @
4aefd373
...
...
@@ -112,7 +112,7 @@ func TestRoundtripSelective(t *testing.T) {
ssb
.
ExploreIndex
(
1
,
ssb
.
ExploreRecursive
(
selector
.
RecursionLimitNone
(),
ssb
.
ExploreAll
(
ssb
.
ExploreRecursiveEdge
()))))
})
.
Node
()
sc
:=
NewSelectiveCar
(
context
.
Background
(),
sourceBs
,
[]
Dag
{
Dag
{
Root
:
nd3
.
Cid
(),
Selector
:
selector
}})
sc
:=
NewSelectiveCar
(
context
.
Background
(),
sourceBs
,
[]
Dag
{{
Root
:
nd3
.
Cid
(),
Selector
:
selector
}})
// write car in one step
buf
:=
new
(
bytes
.
Buffer
)
...
...
@@ -127,7 +127,7 @@ func TestRoundtripSelective(t *testing.T) {
require
.
NoError
(
t
,
err
)
// create a new builder for two-step write
sc2
:=
NewSelectiveCar
(
context
.
Background
(),
sourceBs
,
[]
Dag
{
Dag
{
Root
:
nd3
.
Cid
(),
Selector
:
selector
}})
sc2
:=
NewSelectiveCar
(
context
.
Background
(),
sourceBs
,
[]
Dag
{{
Root
:
nd3
.
Cid
(),
Selector
:
selector
}})
// write car in two steps
var
twoStepBlocks
[]
Block
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment