tester: improve API surface and implement one more test function in lis2mdl driver

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram
2020-08-26 22:59:35 +02:00
committed by Ron Evans
parent dd34b83e9f
commit 2ae950e96d
4 changed files with 76 additions and 30 deletions
+8
View File
@@ -3,3 +3,11 @@
// TODO: info on how to use this.
//
package tester // import "tinygo.org/x/drivers/tester"
// Failer is used by the I2CDevice type to abort when it's used in
// unexpected ways, such as reading an out-of-range register.
type Failer interface {
// Fatalf prints the Printf-formatted message and exits the current
// goroutine.
Fatalf(f string, a ...interface{})
}