Commit 6dfb7a9a authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Drop default_test.go

parent 449d6e2e
......@@ -4,6 +4,8 @@ import (
"time"
)
var _ = FileSystem((*DefaultFileSystem)(nil))
// DefaultFileSystem
func (fs *DefaultFileSystem) GetAttr(name string, context *Context) (*Attr, Status) {
return nil, ENOSYS
......
package fuse
// Make sure library supplied FileSystems support the
// required interface.
import (
"testing"
)
func TestRawFs(t *testing.T) {
var iface RawFileSystem
_ = iface
}
func TestPathFs(t *testing.T) {
var iface FileSystem
iface = new(DefaultFileSystem)
_ = iface
}
func TestDummyFile(t *testing.T) {
d := new(DefaultFile)
var filePtr File = d
_ = filePtr
}
......@@ -100,6 +100,8 @@ type LoopbackFile struct {
DefaultFile
}
var _ = (File)((*LoopbackFile)(nil))
func (f *LoopbackFile) String() string {
return fmt.Sprintf("LoopbackFile(%s)", f.File.Name())
}
......@@ -198,6 +200,9 @@ type ReadOnlyFile struct {
File
}
var _ = (File)((*ReadOnlyFile)(nil))
func (f *ReadOnlyFile) String() string {
return fmt.Sprintf("ReadOnlyFile(%s)", f.File.String())
}
......
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