diff options
| author | Your Name <you@example.com> | 2026-05-19 01:31:47 +0530 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-05-19 01:31:47 +0530 |
| commit | 3b25d826df2b69496fcc560a8ca26089484230c7 (patch) | |
| tree | f683ffa3e4213a5fc6bc1f0d1777ae92fed0e22e /tests/unit/stubs/freertos/FreeRTOS.h | |
| parent | 42902a36bc52e009a1e8d3c371741e30a9cb4c33 (diff) | |
test: add unit tests for relay_validator and relay_selector
- test_relay_validator: Schnorr verify + SHA-256 event ID, tamper detection
(ID, sig, content), invalid JSON, missing fields, result_string
- test_relay_selector: relay scoring (NIP-77 bonus, latency tiebreak,
failure penalty, dead relay handling)
- Updated Makefile with new test targets
- Added configTICK_RATE_HZ to FreeRTOS stubs
Diffstat (limited to 'tests/unit/stubs/freertos/FreeRTOS.h')
| -rw-r--r-- | tests/unit/stubs/freertos/FreeRTOS.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unit/stubs/freertos/FreeRTOS.h b/tests/unit/stubs/freertos/FreeRTOS.h index 696da87..41426c8 100644 --- a/tests/unit/stubs/freertos/FreeRTOS.h +++ b/tests/unit/stubs/freertos/FreeRTOS.h | |||
| @@ -7,6 +7,7 @@ static inline uint32_t xTaskGetTickCount(void) { return 0; } | |||
| 7 | static inline void vTaskDelay(uint32_t ticks) { (void)ticks; } | 7 | static inline void vTaskDelay(uint32_t ticks) { (void)ticks; } |
| 8 | #define pdMS_TO_TICKS(ms) ((ms) / 10) | 8 | #define pdMS_TO_TICKS(ms) ((ms) / 10) |
| 9 | #define portTICK_PERIOD_MS 10 | 9 | #define portTICK_PERIOD_MS 10 |
| 10 | #define configTICK_RATE_HZ 100 | ||
| 10 | #define portMAX_DELAY 0xFFFFFFFF | 11 | #define portMAX_DELAY 0xFFFFFFFF |
| 11 | 12 | ||
| 12 | #endif | 13 | #endif |