Commit 86e38345 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Test DummyFuseFile as well.

parent ca1fef9c
......@@ -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
}
......
......@@ -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
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment