diff options
| author | Your Name <you@example.com> | 2026-05-17 01:39:03 +0530 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-05-17 01:39:03 +0530 |
| commit | 32844ac7c4a135659714aabf7d2414f156176d72 (patch) | |
| tree | 414e6272a9a174bd50566c65e432ed62b29236b3 /tests/unit/stubs/esp_err.h | |
| parent | 60e0a1042e5c56fe7d4b46d760441391df4ff809 (diff) | |
test_cashu (10/10) + test_session (18/18): all 86 unit tests passing
- Expand esp_http_client.h stub: full config struct + method enum + init/perform/cleanup
- Add portTICK_PERIOD_MS + esp_err_to_name to stubs
- session.c: reject duplicate spent secrets in session_create (double-spend protection)
- .gitignore: add test binaries
Diffstat (limited to 'tests/unit/stubs/esp_err.h')
| -rw-r--r-- | tests/unit/stubs/esp_err.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unit/stubs/esp_err.h b/tests/unit/stubs/esp_err.h index 84c3734..9bedb72 100644 --- a/tests/unit/stubs/esp_err.h +++ b/tests/unit/stubs/esp_err.h | |||
| @@ -13,6 +13,8 @@ typedef int esp_err_t; | |||
| 13 | #define ESP_ERR_NO_MEM 0x101 | 13 | #define ESP_ERR_NO_MEM 0x101 |
| 14 | #define ESP_ERR_NOT_FOUND 0x104 | 14 | #define ESP_ERR_NOT_FOUND 0x104 |
| 15 | 15 | ||
| 16 | static inline const char *esp_err_to_name(esp_err_t err) { (void)err; return "ESP_OK"; } | ||
| 17 | |||
| 16 | #define ESP_ERROR_CHECK(x) do { if ((x) != 0) { fprintf(stderr, "ESP_ERROR_CHECK failed: 0x%x\n", (int)(x)); abort(); } } while(0) | 18 | #define ESP_ERROR_CHECK(x) do { if ((x) != 0) { fprintf(stderr, "ESP_ERROR_CHECK failed: 0x%x\n", (int)(x)); abort(); } } while(0) |
| 17 | 19 | ||
| 18 | #endif | 20 | #endif |