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
dms3
go-merkledag
Commits
d00305a4
Commit
d00305a4
authored
May 26, 2015
by
rht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace 'var * bytes.Buffer' with '\1 := new(bytes.Buffer)'
parent
93ab652f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
traverse/traverse_test.go
traverse/traverse_test.go
+1
-1
No files found.
traverse/traverse_test.go
View file @
d00305a4
...
@@ -317,7 +317,7 @@ func TestBFSSkip(t *testing.T) {
...
@@ -317,7 +317,7 @@ func TestBFSSkip(t *testing.T) {
func
testWalkOutputs
(
t
*
testing
.
T
,
root
*
mdag
.
Node
,
opts
Options
,
expect
[]
byte
)
{
func
testWalkOutputs
(
t
*
testing
.
T
,
root
*
mdag
.
Node
,
opts
Options
,
expect
[]
byte
)
{
expect
=
bytes
.
TrimLeft
(
expect
,
"
\n
"
)
expect
=
bytes
.
TrimLeft
(
expect
,
"
\n
"
)
var
buf
bytes
.
Buffer
buf
:=
new
(
bytes
.
Buffer
)
walk
:=
func
(
current
State
)
error
{
walk
:=
func
(
current
State
)
error
{
s
:=
fmt
.
Sprintf
(
"%d %s
\n
"
,
current
.
Depth
,
current
.
Node
.
Data
)
s
:=
fmt
.
Sprintf
(
"%d %s
\n
"
,
current
.
Depth
,
current
.
Node
.
Data
)
t
.
Logf
(
"walk: %s"
,
s
)
t
.
Logf
(
"walk: %s"
,
s
)
...
...
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