MCPcopy Create free account
hub / github.com/FastLED/FastLED / resetMockHistory

Function resetMockHistory

tests/platforms/esp/32/drivers/parlio/parlio_driver.cpp:161–166  ·  view source on GitHub ↗

@brief Light reset of mock (history only, keep initialization)

Source from the content-addressed store, hash-verified

159
160/// @brief Light reset of mock (history only, keep initialization)
161static void resetMockHistory() {
162 auto& mock = ParlioPeripheralMock::instance();
163 mock.clearTransmissionHistory();
164 mock.setTransmitFailure(false);
165 mock.setTransmitDelay(0);
166}
167
168/// @brief Wait for PARLIO driver to become READY (synchronous mock: instant)
169static void waitForDriverReady(fl::IChannelDriver& driver, int maxPolls = 100) {

Callers 1

FL_TEST_FILEFunction · 0.85

Calls 3

setTransmitFailureMethod · 0.45
setTransmitDelayMethod · 0.45

Tested by

no test coverage detected