Commit Graph

9 Commits

Author SHA1 Message Date
soypat 31538f1b2f fix requested changes by @aykevl 2023-07-02 18:30:11 +02:00
soypat 64029612e0 add correct Tx implementation for mock I2C interfaces 2023-07-02 18:30:11 +02:00
deadprogram 1bb1b621c6 all: correct go fmt
Signed-off-by: deadprogram <ron@hybridgroup.com>
2022-09-25 13:23:16 +02:00
Kenneth Bell 6b58fdc95a tester: add a mock for command-oriented i2c devices 2021-05-12 09:21:52 +02:00
Kenneth Bell 91dadd5535 Add 16-bit register mock device 2021-05-10 12:15:52 +02:00
Roger Peppe 8cb226938b mcp23017: use new tester package
Also change the `tester` package slightly to use an exposed `Registers`
array rather adding yet another accessor method to retrieve a register
value. This seems to me more transparent and "obvious" - we aren't trying
to hide the fact that there's just a simple memory store there.
Also unexport the `assertRegisterRange` method which was never intended
to be part of the public API.
2021-01-20 12:56:22 +01:00
deadprogram a07b20f2f9 tester: correct interface definition for I2C Tx function
Signed-off-by: deadprogram <ron@hybridgroup.com>
2020-08-27 12:17:47 +02:00
deadprogram 2ae950e96d tester: improve API surface and implement one more test function in lis2mdl driver
Signed-off-by: deadprogram <ron@hybridgroup.com>
2020-08-27 12:15:57 +02:00
deadprogram ce81b66fe2 tester: add very basic mock structs for testing i2c devices, based on work done by @rogpeppe
Signed-off-by: deadprogram <ron@hybridgroup.com>
2020-08-27 12:15:57 +02:00