sysfs: increase test coverage

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram 2017-04-09 11:04:41 +02:00
parent cce653522c
commit 13782c99e2
1 changed files with 7 additions and 0 deletions

View File

@ -13,3 +13,10 @@ func TestFilesystemOpen(t *testing.T) {
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)
}