Pre-seeds a future `read(pin)` call to return `high`.
(&mut self, pin: Pin, high: bool)
| 98 | impl MockPins { |
| 99 | /// Pre-seeds a future `read(pin)` call to return `high`. |
| 100 | pub fn inject_read(&mut self, pin: Pin, high: bool) { |
| 101 | self.reads.push_back((pin, high)); |
| 102 | } |
| 103 | |
| 104 | /// Returns the ordered trace of all GPIO operations performed so far. |
| 105 | pub fn trace(&self) -> &[i32] { |
no outgoing calls
no test coverage detected