[]Module mai400_api::mock

Mock objects for use with unit tests

Note: This module was created because the crate we previously used for mocking functions, Double, was written specifically for single-threaded code. Our APIs and services which utilize this crate are not guaranteed to be single-threaded, so we made the decision to create our own mock objects.

Structs

MockStream

Mock object for simulating a UART data stream

ReadStruct

Structure containing the output data or result to return when the MockStream's read function is called

WriteStruct

Structure containing the input data to verify and/or result to return when the MockStream's write function is called