FastLED 3.9.15
Loading...
Searching...
No Matches
DriverTestRunner Class Reference

Detailed Description

Main test runner that orchestrates all driver tests.

Example usage:

FastLED.addLeds<WS2812, DATA_PIN, GRB>(leds, NUM_LEDS);
runner.runAllTests();
runner.printSummary();
#define NUM_LEDS
fl::CRGB leds[NUM_LEDS]
#define DATA_PIN
Definition ClientReal.h:82
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
DriverTestRunner(CRGB *leds, int numLeds)
Construct a test runner.
Definition TestRunner.h:66
constexpr EOrder GRB
Definition eorder.h:19
fl::CRGB CRGB
Definition crgb.h:25

Definition at line 61 of file TestRunner.h.

#include <TestRunner.h>

+ Collaboration diagram for DriverTestRunner:

Public Member Functions

 DriverTestRunner (CRGB *leds, int numLeds)
 Construct a test runner.
 
bool allPassed () const
 Check if all tests passed.
 
int getPassedTests () const
 Get number of passed tests.
 
int getTotalTests () const
 Get total number of tests run.
 
void printSummary ()
 Print final test summary with pass/fail status.
 
void runAllTests ()
 Run all tests: validation + driver tests.
 

Private Member Functions

void printHeader ()
 Print test startup header.
 
void recordResult (const char *name, bool passed)
 Record a test result.
 
void runTestPatterns ()
 Run visual LED test patterns.
 
void testAllDrivers ()
 Test all available drivers.
 
bool testSingleDriver (const char *driverName)
 Test a single driver with LED patterns.
 
void validateExpectedDrivers ()
 Validate that all expected drivers are present.
 

Private Attributes

bool mAllTestsPassed
 
CRGBmLeds
 
int mNumLeds
 
int mPassedTests
 
int mTotalTests
 

The documentation for this class was generated from the following file: