Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go-fuse
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
Levin Zimmermann
go-fuse
Commits
6a591a3e
Commit
6a591a3e
authored
Jun 29, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trim zipfs test.
parent
7fe9eff8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
zipfs/zipfs_test.go
zipfs/zipfs_test.go
+4
-9
No files found.
zipfs/zipfs_test.go
View file @
6a591a3e
...
...
@@ -2,6 +2,7 @@ package zipfs
import
(
"github.com/hanwen/go-fuse/fuse"
"io/ioutil"
"os"
"testing"
)
...
...
@@ -28,17 +29,11 @@ func setupZipfs() (mountPoint string, cleanup func()) {
func
TestZipFs
(
t
*
testing
.
T
)
{
mountPoint
,
clean
:=
setupZipfs
()
defer
clean
()
d
,
err
:=
os
.
Open
(
mountPoint
)
CheckSuccess
(
err
)
names
,
err
:=
d
.
Readdirnames
(
-
1
)
CheckSuccess
(
err
)
err
=
d
.
Close
()
entries
,
err
:=
ioutil
.
ReadDir
(
mountPoint
)
CheckSuccess
(
err
)
if
len
(
nam
es
)
!=
2
{
t
.
Error
(
"wrong length"
,
nam
es
)
if
len
(
entri
es
)
!=
2
{
t
.
Error
(
"wrong length"
,
entri
es
)
}
fi
,
err
:=
os
.
Stat
(
mountPoint
+
"/subdir"
)
CheckSuccess
(
err
)
...
...
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