1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-04-27 13:48:56 +08:00
deadprogram 13782c99e2 sysfs: increase test coverage
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-09 11:04:41 +02:00

23 lines
437 B
Go

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