Skip to content

Commit

Permalink
sysfs: increase test coverage
Browse files Browse the repository at this point in the history
Signed-off-by: deadprogram <[email protected]>
  • Loading branch information
deadprogram committed Apr 9, 2017
1 parent cce6535 commit 13782c9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sysfs/fs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 13782c9

Please sign in to comment.