1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-04-29 13:49:14 +08:00
2022-11-09 17:30:57 +01:00

23 lines
425 B
Go

package sysfs
import (
"os"
"testing"
"gobot.io/x/gobot/gobottest"
)
func TestFilesystemOpen(t *testing.T) {
fs := &nativeFilesystem{}
file, err := fs.openFile(os.DevNull, os.O_RDONLY, 666)
gobottest.Assert(t, err, nil)
var _ File = file
}
func TestFilesystemStat(t *testing.T) {
fs := &nativeFilesystem{}
fileInfo, err := fs.stat(os.DevNull)
gobottest.Assert(t, err, nil)
gobottest.Refute(t, fileInfo, nil)
}