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

Function resetMockState

tests/platforms/esp/32/drivers/i2s/channel_driver_i2s.cpp:36–40  ·  view source on GitHub ↗

@brief Reset mock state between tests

Source from the content-addressed store, hash-verified

34
35/// @brief Reset mock state between tests
36void resetMockState() {
37 auto& mock = I2sLcdCamPeripheralMock::instance();
38 mock.reset();
39 mock.setTransmitDelay(0); // Instant completion for unit tests
40}
41
42/// @brief Create mock peripheral as shared_ptr
43fl::shared_ptr<II2sLcdCamPeripheral> createMockPeripheral() {

Callers 1

FL_TEST_FILEFunction · 0.70

Calls 2

resetMethod · 0.45
setTransmitDelayMethod · 0.45

Tested by

no test coverage detected