gpio: fix failing tests

This commit is contained in:
Karan Misra 2014-04-06 04:08:44 +05:30
parent 0c193071ed
commit 18c574b7c8
1 changed files with 8 additions and 1 deletions

View File

@ -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
}