mirror of
https://github.com/kidoman/embd
synced 2025-04-11 17:12:13 +02:00
gpio: fix failing tests
This commit is contained in:
parent
0c193071ed
commit
18c574b7c8
@ -1,6 +1,9 @@
|
|||||||
package embd
|
package embd
|
||||||
|
|
||||||
import "testing"
|
import (
|
||||||
|
"testing"
|
||||||
|
"time"
|
||||||
|
)
|
||||||
|
|
||||||
type fakeDigitalPin struct {
|
type fakeDigitalPin struct {
|
||||||
n int
|
n int
|
||||||
@ -22,6 +25,10 @@ func (*fakeDigitalPin) Write(val int) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (*fakeDigitalPin) TimePulse(state int) (time.Duration, error) {
|
||||||
|
return 0, nil
|
||||||
|
}
|
||||||
|
|
||||||
func (*fakeDigitalPin) ActiveLow(b bool) error {
|
func (*fakeDigitalPin) ActiveLow(b bool) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user