From 18c574b7c81d9296dea8038839f9971a8abc7981 Mon Sep 17 00:00:00 2001 From: Karan Misra Date: Sun, 6 Apr 2014 04:08:44 +0530 Subject: [PATCH] gpio: fix failing tests --- gpiodriver_test.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gpiodriver_test.go b/gpiodriver_test.go index 254c4f1..cc15578 100644 --- a/gpiodriver_test.go +++ b/gpiodriver_test.go @@ -1,6 +1,9 @@ package embd -import "testing" +import ( + "testing" + "time" +) type fakeDigitalPin struct { n int @@ -22,6 +25,10 @@ func (*fakeDigitalPin) Write(val int) error { return nil } +func (*fakeDigitalPin) TimePulse(state int) (time.Duration, error) { + return 0, nil +} + func (*fakeDigitalPin) ActiveLow(b bool) error { return nil }