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
86e38345
Commit
86e38345
authored
Jan 03, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test DummyFuseFile as well.
parent
ca1fef9c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
examplelib/dummyfuse.go
examplelib/dummyfuse.go
+3
-3
examplelib/dummyfuse_test.go
examplelib/dummyfuse_test.go
+8
-0
No files found.
examplelib/dummyfuse.go
View file @
86e38345
...
...
@@ -110,7 +110,8 @@ func (self *DummyFuseFile) Write(*fuse.WriteIn, []byte) (uint32, fuse.Status) {
return
0
,
fuse
.
ENOSYS
}
func
(
self
*
DummyFuseFile
)
Flush
()
{
func
(
self
*
DummyFuseFile
)
Flush
()
fuse
.
Status
{
return
fuse
.
ENOSYS
}
func
(
self
*
DummyFuseFile
)
Release
()
{
...
...
@@ -204,8 +205,7 @@ func (self *DummyPathFuse) Access(name string, mode uint32) (code fuse.Status) {
return
fuse
.
ENOSYS
}
func
(
self
*
DummyPathFuse
)
Create
(
name
string
,
flags
uint32
,
mode
uint32
)
(
file
fuse
.
RawFuseFile
,
code
fuse
.
Status
)
{
func
(
self
*
DummyPathFuse
)
Create
(
name
string
,
flags
uint32
,
mode
uint32
)
(
file
fuse
.
RawFuseFile
,
code
fuse
.
Status
)
{
return
nil
,
fuse
.
ENOSYS
}
...
...
examplelib/dummyfuse_test.go
View file @
86e38345
...
...
@@ -15,3 +15,11 @@ func TestDummy(t *testing.T) {
fuse
.
NewPathFileSystemConnector
(
pathFs
)
}
func
TestDummyFile
(
t
*
testing
.
T
)
{
d
:=
new
(
DummyFuseFile
)
var
filePtr
fuse
.
RawFuseFile
=
d
var
fileDir
fuse
.
RawFuseDir
=
d
_
=
fileDir
_
=
filePtr
}
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