Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
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
go
Commits
0358c895
Commit
0358c895
authored
Dec 15, 2011
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
io/ioutil: remove another reference to _test
R=golang-dev, bradfitz CC=golang-dev
https://golang.org/cl/5492051
parent
80103cd5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
src/pkg/io/ioutil/ioutil_test.go
src/pkg/io/ioutil/ioutil_test.go
+11
-11
No files found.
src/pkg/io/ioutil/ioutil_test.go
View file @
0358c895
...
...
@@ -70,26 +70,26 @@ func TestReadDir(t *testing.T) {
t
.
Fatalf
(
"ReadDir %s: error expected, none found"
,
dirname
)
}
dirname
=
"."
dirname
=
".
.
"
list
,
err
:=
ReadDir
(
dirname
)
if
err
!=
nil
{
t
.
Fatalf
(
"ReadDir %s: %v"
,
dirname
,
err
)
}
found
Test
:=
false
found
Test
Dir
:=
false
found
File
:=
false
found
Sub
Dir
:=
false
for
_
,
dir
:=
range
list
{
switch
{
case
!
dir
.
IsDir
()
&&
dir
.
Name
()
==
"io
util
_test.go"
:
found
Test
=
true
case
dir
.
IsDir
()
&&
dir
.
Name
()
==
"
_test
"
:
found
Test
Dir
=
true
case
!
dir
.
IsDir
()
&&
dir
.
Name
()
==
"io_test.go"
:
found
File
=
true
case
dir
.
IsDir
()
&&
dir
.
Name
()
==
"
ioutil
"
:
found
Sub
Dir
=
true
}
}
if
!
found
Test
{
t
.
Fatalf
(
"ReadDir %s:
test
file not found"
,
dirname
)
if
!
found
File
{
t
.
Fatalf
(
"ReadDir %s:
io_test.go
file not found"
,
dirname
)
}
if
!
found
Test
Dir
{
t
.
Fatalf
(
"ReadDir %s:
_test
directory not found"
,
dirname
)
if
!
found
Sub
Dir
{
t
.
Fatalf
(
"ReadDir %s:
ioutil
directory not found"
,
dirname
)
}
}
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