Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
0e9ee93c
Commit
0e9ee93c
authored
Dec 13, 2011
by
Christopher Wedgwood
Committed by
David Symonds
Dec 13, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
archive/tar: (test) structure comparison not reflect.DeepEqual
R=dsymonds CC=golang-dev
https://golang.org/cl/5487064
parent
dd8dc6f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
reader_test.go
src/pkg/archive/tar/reader_test.go
+2
-3
No files found.
src/pkg/archive/tar/reader_test.go
View file @
0e9ee93c
...
...
@@ -10,7 +10,6 @@ import (
"fmt"
"io"
"os"
"reflect"
"testing"
"time"
)
...
...
@@ -127,7 +126,7 @@ testLoop:
f
.
Close
()
continue
testLoop
}
if
!
reflect
.
DeepEqual
(
hdr
,
header
)
{
if
*
hdr
!=
*
header
{
t
.
Errorf
(
"test %d, entry %d: Incorrect header:
\n
have %+v
\n
want %+v"
,
i
,
j
,
*
hdr
,
*
header
)
}
...
...
@@ -201,7 +200,7 @@ func TestIncrementalRead(t *testing.T) {
}
// check the header
if
!
reflect
.
DeepEqual
(
hdr
,
headers
[
nread
])
{
if
*
hdr
!=
*
headers
[
nread
]
{
t
.
Errorf
(
"Incorrect header:
\n
have %+v
\n
want %+v"
,
*
hdr
,
headers
[
nread
])
}
...
...
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