tinygo.org/x/drivers@v0.27.1-0.20240509133757-7dbca2a54349/tester/tester.go (about) 1 // Package tester contains mock structs to make it easier to test I2C devices. 2 // 3 // TODO: info on how to use this. 4 package tester // import "tinygo.org/x/drivers/tester" 5 6 // Failer is used by the I2CDevice type to abort when it's used in 7 // unexpected ways, such as reading an out-of-range register. 8 type Failer interface { 9 // Fatalf prints the Printf-formatted message and exits the current 10 // goroutine. 11 Fatalf(f string, a ...interface{}) 12 }