1
0
mirror of https://github.com/kidoman/embd synced 2024-05-29 07:08:04 +02:00

gpio: fix failing tests

This commit is contained in:
Karan Misra 2014-04-06 04:08:44 +05:30
parent 0c193071ed
commit 18c574b7c8

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
}