From 13782c99e20b354378b49f07af20764805a4b853 Mon Sep 17 00:00:00 2001 From: deadprogram Date: Sun, 9 Apr 2017 11:04:41 +0200 Subject: [PATCH] sysfs: increase test coverage Signed-off-by: deadprogram --- sysfs/fs_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sysfs/fs_test.go b/sysfs/fs_test.go index 4f58f9f2..b44ebc72 100644 --- a/sysfs/fs_test.go +++ b/sysfs/fs_test.go @@ -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) +}