1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-04-27 13:48:56 +08:00

23 lines
425 B
Go
Raw Normal View History

2014-11-07 16:21:39 -08:00
package sysfs
import (
"os"
"testing"
"gobot.io/x/gobot/gobottest"
2014-11-07 16:21:39 -08:00
)
func TestFilesystemOpen(t *testing.T) {
2022-11-05 07:42:28 +01:00
fs := &nativeFilesystem{}
file, err := fs.openFile(os.DevNull, os.O_RDONLY, 666)
gobottest.Assert(t, err, nil)
2014-11-07 16:21:39 -08:00
var _ File = file
}
func TestFilesystemStat(t *testing.T) {
2022-11-05 07:42:28 +01:00
fs := &nativeFilesystem{}
fileInfo, err := fs.stat(os.DevNull)
gobottest.Assert(t, err, nil)
gobottest.Refute(t, fileInfo, nil)
}