This PR adds mock (noop) implementations of some embedded-hal and display-interface traits to make it possible to compile all our doctests. The tests could still use some work, but this PR is only intended to add to necessary infrastructure to remove the ignore flag from all doctests. These changes should make it easier to keep the examples up to date in the future and prevent typos that brake the code (like in the Builder example).
Unfortunately there is no great way to conditionally add code for doctests and the only solution I could come up with is a hidden _mock module in the create root.
This PR adds mock (noop) implementations of some embedded-hal and display-interface traits to make it possible to compile all our doctests. The tests could still use some work, but this PR is only intended to add to necessary infrastructure to remove the ignore flag from all doctests. These changes should make it easier to keep the examples up to date in the future and prevent typos that brake the code (like in the
Builder
example).Unfortunately there is no great way to conditionally add code for doctests and the only solution I could come up with is a hidden
_mock
module in the create root.