View Source Wafer.Driver.Fake (wafer v1.1.0)

This module provides a fake driver which you can use in your tests.

It doesn't really do anything except return zeroes or empty results. I suggest that you use Mimic to set expectations for function calls and mock return values.

This module implements the Chip, DeviceID, GPIO, I2C and SPI protocols.

Summary

Types

@type t() :: %Wafer.Driver.Fake{opts: any()}