1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-04-24 13:48:49 +08:00
Thomas Kohler fcdf286f1d
Fix(build): linter findings of "gosimple", "govet" and "staticcheck" (#917)
Fix also encoder and dps overflow in gopigo3 "GetMotorStatus()". Problem found by "staticcheck".
2023-05-19 14:16:22 +02:00

23 lines
427 B
Go

package system
import (
"os"
"testing"
"gobot.io/x/gobot/gobottest"
)
func TestFilesystemOpen(t *testing.T) {
fs := &nativeFilesystem{}
file, err := fs.openFile(os.DevNull, os.O_RDONLY, 0666)
gobottest.Assert(t, err, nil)
var _ File = file
}
func TestFilesystemStat(t *testing.T) {
fs := &nativeFilesystem{}
fileInfo, err := fs.stat(os.DevNull)
gobottest.Assert(t, err, nil)
gobottest.Refute(t, fileInfo, nil)
}