From a128e466ddde4ce1b2ee8b14433191e5abbc80c9 Mon Sep 17 00:00:00 2001 From: deadprogram Date: Sat, 10 Jun 2017 10:58:59 +0200 Subject: [PATCH] sysfs: increase test coverage Signed-off-by: deadprogram --- sysfs/pwm_pin_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/sysfs/pwm_pin_test.go b/sysfs/pwm_pin_test.go index 8ef58df1..1ffeef71 100644 --- a/sysfs/pwm_pin_test.go +++ b/sysfs/pwm_pin_test.go @@ -46,6 +46,7 @@ func TestPwmPin(t *testing.T) { err = pin.Enable(true) gobottest.Assert(t, err, nil) gobottest.Assert(t, fs.Files["/sys/class/pwm/pwmchip0/pwm10/enable"].Contents, "1") + gobottest.Refute(t, pin.InvertPolarity(false), nil) fs.Files["/sys/class/pwm/pwmchip0/pwm10/period"].Contents = "6" data, _ := pin.Period()