Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
og-rek
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
og-rek
Commits
9cd34a3e
Commit
9cd34a3e
authored
Sep 21, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! fuzz: Add more details when reporting failures
Appologize for the breakage there.
parent
eaf88f07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
fuzz.go
fuzz.go
+2
-2
No files found.
fuzz.go
View file @
9cd34a3e
...
...
@@ -40,11 +40,11 @@ func Fuzz(data []byte) int {
}
encoded
:=
buf
.
String
()
dec
=
NewDecoder
(
bytes
.
New
StringReader
(
encoded
))
dec
=
NewDecoder
(
bytes
.
New
BufferString
(
encoded
))
obj2
,
err
:=
dec
.
Decode
()
if
err
!=
nil
{
// must succeed, as buf should contain valid pickle from encoder
panic
(
fmt
.
Sprintf
(
"protocol %d: decode back error: err
\n
pickle: %q"
,
proto
,
encoded
)
panic
(
fmt
.
Sprintf
(
"protocol %d: decode back error: err
\n
pickle: %q"
,
proto
,
encoded
)
)
}
if
!
reflect
.
DeepEqual
(
obj
,
obj2
)
{
...
...
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