|
FastLED 3.9.15
|
Main test runner that orchestrates all driver tests.
Example usage:
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 |
| CRGB * | mLeds |
| int | mNumLeds |
| int | mPassedTests |
| int | mTotalTests |