15 lines
253 B
Go
15 lines
253 B
Go
|
package sysfs
|
||
|
|
||
|
import (
|
||
|
"github.com/hybridgroup/gobot"
|
||
|
"os"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestFilesystemOpen(t *testing.T) {
|
||
|
SetFilesystem(&NativeFilesystem{})
|
||
|
file, err := OpenFile(os.DevNull, os.O_RDONLY, 666)
|
||
|
gobot.Assert(t, err, nil)
|
||
|
var _ File = file
|
||
|
}
|