FastLED 3.9.15
Loading...
Searching...
No Matches
test_result.h
Go to the documentation of this file.
1// examples/SIMD/test_result.h
2//
3// Test result tracking structure for SIMD tests
4
5#pragma once
6
7namespace simd_test {
8
10struct TestResult {
11 const char* test_name;
12 bool passed;
13 const char* error_msg;
14
15 TestResult(const char* name) : test_name(name), passed(true), error_msg(nullptr) {}
16
17 void fail(const char* msg) {
18 passed = false;
19 error_msg = msg;
20 }
21};
22
23} // namespace simd_test
TestResult(const char *name)
Definition test_result.h:15
void fail(const char *msg)
Definition test_result.h:17
const char * test_name
Definition test_result.h:11
const char * error_msg
Definition test_result.h:13