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-bitswap
Commits
aad2ad5d
Commit
aad2ad5d
authored
May 19, 2015
by
rht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run 'gofmt -s -w' on these files
parent
1f178a6f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
decision/engine_test.go
decision/engine_test.go
+2
-2
message/message_test.go
message/message_test.go
+1
-1
No files found.
decision/engine_test.go
View file @
aad2ad5d
...
@@ -128,10 +128,10 @@ func TestPartnerWantsThenCancels(t *testing.T) {
...
@@ -128,10 +128,10 @@ func TestPartnerWantsThenCancels(t *testing.T) {
type
testCase
[][]
string
type
testCase
[][]
string
testcases
:=
[]
testCase
{
testcases
:=
[]
testCase
{
testCase
{
{
alphabet
,
vowels
,
alphabet
,
vowels
,
},
},
testCase
{
{
alphabet
,
stringsComplement
(
alphabet
,
vowels
),
alphabet
,
stringsComplement
(
alphabet
,
vowels
),
},
},
}
}
...
...
message/message_test.go
View file @
aad2ad5d
...
@@ -27,7 +27,7 @@ func TestNewMessageFromProto(t *testing.T) {
...
@@ -27,7 +27,7 @@ func TestNewMessageFromProto(t *testing.T) {
protoMessage
:=
new
(
pb
.
Message
)
protoMessage
:=
new
(
pb
.
Message
)
protoMessage
.
Wantlist
=
new
(
pb
.
Message_Wantlist
)
protoMessage
.
Wantlist
=
new
(
pb
.
Message_Wantlist
)
protoMessage
.
Wantlist
.
Entries
=
[]
*
pb
.
Message_Wantlist_Entry
{
protoMessage
.
Wantlist
.
Entries
=
[]
*
pb
.
Message_Wantlist_Entry
{
&
pb
.
Message_Wantlist_Entry
{
Block
:
proto
.
String
(
str
)},
{
Block
:
proto
.
String
(
str
)},
}
}
if
!
wantlistContains
(
protoMessage
.
Wantlist
,
str
)
{
if
!
wantlistContains
(
protoMessage
.
Wantlist
,
str
)
{
t
.
Fail
()
t
.
Fail
()
...
...
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