TinyBench Test Notes¶
tiny_bench_self_test() covers 41 test cases in six categories:
| Category | Cases | Scenario | Verification |
|---|---|---|---|
| Happy Path | 1-8 | put → get consistency | Pointer, length, type, value fully consistent |
| Error Path | 9-11 | Not found, duplicate, full | Returns corresponding error codes |
| Delete/Clear | 12-16 | remove → get, list_data, clear | Invisible after remove, empty after clear |
| Tool Registration | 17-30 | Register, query, duplicate, get | Info correct, function pointer callable |
| NULL Validation | 31-35 | NULL parameters for each API | Returns ERR_NULL |
| Edge Cases | 36-41 | Name too long, unknown type | Returns ERR_NAME_LEN, "unknown" |
Self-Test Output Example¶
===== TinyBench Self-Test =====
✓ [1] init: slots start unused
✓ [2] init: tools start unused
...
✓ [41] type_name: unknown
-----
41 / 41 tests passed [ALL PASS]
===== TinyBench Self-Test DONE =====
Remote Trigger¶
Send BENCH,TEST via MQTT to /mqtt/server; results are published to /mqtt/node.
Test Environment¶
- Compiled and run with host
gcc, no embedded dependencies - Flashed and verified on ESP32-S3 hardware, coexisting with WiFi/MQTT/sensors