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
70113b43
Commit
70113b43
authored
Dec 08, 2010
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a few more errors caught by the print checker
R=rsc CC=golang-dev
https://golang.org/cl/3431046
parent
839abc2e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
reader_test.go
src/pkg/archive/tar/reader_test.go
+1
-1
writer_test.go
src/pkg/archive/tar/writer_test.go
+1
-1
flag_test.go
src/pkg/flag/flag_test.go
+1
-1
No files found.
src/pkg/archive/tar/reader_test.go
View file @
70113b43
...
...
@@ -136,7 +136,7 @@ testLoop:
break
}
if
hdr
!=
nil
||
err
!=
nil
{
t
.
Errorf
(
"test %d: Unexpected entry or error: hdr=%v err=%v"
,
i
,
err
)
t
.
Errorf
(
"test %d: Unexpected entry or error: hdr=%v err=%v"
,
i
,
hdr
,
err
)
}
f
.
Close
()
}
...
...
src/pkg/archive/tar/writer_test.go
View file @
70113b43
...
...
@@ -141,7 +141,7 @@ testLoop:
}
}
if
err
:=
tw
.
Close
();
err
!=
nil
{
t
.
Errorf
(
"test %d: Failed closing archive: %v"
,
err
)
t
.
Errorf
(
"test %d: Failed closing archive: %v"
,
i
,
err
)
continue
testLoop
}
...
...
src/pkg/flag/flag_test.go
View file @
70113b43
...
...
@@ -196,6 +196,6 @@ func TestChangingArgs(t *testing.T) {
args
:=
Args
()
if
!*
before
||
cmd
!=
"subcmd"
||
!*
after
||
len
(
args
)
!=
1
||
args
[
0
]
!=
"args"
{
t
.
Fatal
(
"expected true subcmd true [args] got %v %v %v %v"
,
*
before
,
cmd
,
*
after
,
args
)
t
.
Fatal
f
(
"expected true subcmd true [args] got %v %v %v %v"
,
*
before
,
cmd
,
*
after
,
args
)
}
}
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