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

Function verifyRGBAt

tests/fl/chipsets/encoders/ws2803.hpp:43–48  ·  view source on GitHub ↗

Helper to verify output contains expected RGB bytes at offset

Source from the content-addressed store, hash-verified

41
42/// Helper to verify output contains expected RGB bytes at offset
43void verifyRGBAt(const fl::vector<u8>& output, size_t offset, u8 r, u8 g, u8 b) {
44 FL_REQUIRE_LT(offset + 2, output.size());
45 FL_CHECK_EQ(output[offset + 0], r); // Red
46 FL_CHECK_EQ(output[offset + 1], g); // Green
47 FL_CHECK_EQ(output[offset + 2], b); // Blue
48}
49
50using namespace test_ws2803;
51

Callers 1

ws2803.hppFile · 0.70

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected