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
7e3cd3eb
Commit
7e3cd3eb
authored
Jun 24, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run gofmt again.
parent
2c39d5b4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
unionfs/unionfs_test.go
unionfs/unionfs_test.go
+1
-1
zipfs/zipfs_test.go
zipfs/zipfs_test.go
+3
-5
No files found.
unionfs/unionfs_test.go
View file @
7e3cd3eb
...
@@ -431,7 +431,7 @@ func TestWriteAccess(t *testing.T) {
...
@@ -431,7 +431,7 @@ func TestWriteAccess(t *testing.T) {
err
:=
ioutil
.
WriteFile
(
fn
,
[]
byte
(
"foo"
),
0444
)
err
:=
ioutil
.
WriteFile
(
fn
,
[]
byte
(
"foo"
),
0444
)
CheckSuccess
(
err
)
CheckSuccess
(
err
)
errno
:=
syscall
.
Access
(
wd
+
"/mount/file"
,
fuse
.
W_OK
)
errno
:=
syscall
.
Access
(
wd
+
"/mount/file"
,
fuse
.
W_OK
)
if
errno
!=
0
{
if
errno
!=
0
{
err
=
os
.
Errno
(
errno
)
err
=
os
.
Errno
(
errno
)
CheckSuccess
(
err
)
CheckSuccess
(
err
)
...
...
zipfs/zipfs_test.go
View file @
7e3cd3eb
package
zipfs
package
zipfs
import
(
import
(
...
@@ -11,12 +10,12 @@ func setupZipfs() (mountPoint string, cleanup func()) {
...
@@ -11,12 +10,12 @@ func setupZipfs() (mountPoint string, cleanup func()) {
wd
,
err
:=
os
.
Getwd
()
wd
,
err
:=
os
.
Getwd
()
CheckSuccess
(
err
)
CheckSuccess
(
err
)
zfs
,
err
:=
NewArchiveFileSystem
(
wd
+
"/test.zip"
)
zfs
,
err
:=
NewArchiveFileSystem
(
wd
+
"/test.zip"
)
CheckSuccess
(
err
)
CheckSuccess
(
err
)
mountPoint
=
fuse
.
MakeTempDir
()
mountPoint
=
fuse
.
MakeTempDir
()
state
,
_
,
err
:=
fuse
.
MountFileSystem
(
mountPoint
,
zfs
,
nil
)
state
,
_
,
err
:=
fuse
.
MountFileSystem
(
mountPoint
,
zfs
,
nil
)
state
.
Debug
=
true
state
.
Debug
=
true
go
state
.
Loop
(
false
)
go
state
.
Loop
(
false
)
...
@@ -74,8 +73,7 @@ func TestLinkCount(t *testing.T) {
...
@@ -74,8 +73,7 @@ func TestLinkCount(t *testing.T) {
fi
,
err
:=
os
.
Stat
(
mp
+
"/file.txt"
)
fi
,
err
:=
os
.
Stat
(
mp
+
"/file.txt"
)
CheckSuccess
(
err
)
CheckSuccess
(
err
)
if
fi
.
Nlink
!=
1
{
if
fi
.
Nlink
!=
1
{
t
.
Fatal
(
"wrong link count"
,
fi
.
Nlink
)
t
.
Fatal
(
"wrong link count"
,
fi
.
Nlink
)
}
}
}
}
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