diff options
| author | Your Name <you@example.com> | 2026-05-23 04:55:11 +0530 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-05-23 04:55:11 +0530 |
| commit | fb8558cbf964fae5a840f8f948b89a0d42045802 (patch) | |
| tree | 7b95a9e8cfa665c13ce56c8c0b9bdba950bc4934 /tests | |
| parent | 9330b01c28aebc865a3c0a51df8730196cb4152e (diff) | |
Phase 6e-6f: Break circular dependencies
6e: Extract tls_worker queue from tollgate_api.c into shared tls_worker.c/h
- mint_health.c no longer includes tollgate_api.h
- tollgate_api.c no longer defines tls_worker functions
- Clean circular dependency broken
6f: Move payout_config_t from lightning_payout.h to config.h
- config.h no longer includes lightning_payout.h
- lightning_payout.h includes config.h for types
- Reverse dependency broken
All 21 unit tests pass. ESP-IDF build passes.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/unit/stubs/tollgate_api.h | 7 | ||||
| -rwxr-xr-x | tests/unit/test_beacon_price | bin | 35744 -> 35592 bytes | |||
| -rwxr-xr-x | tests/unit/test_firewall_sandbox | bin | 111016 -> 111016 bytes | |||
| -rwxr-xr-x | tests/unit/test_market | bin | 49456 -> 49360 bytes | |||
| -rwxr-xr-x | tests/unit/test_session_payment_method | bin | 117880 -> 117792 bytes | |||
| -rwxr-xr-x | tests/unit/test_tollgate_client_mining | bin | 48448 -> 48424 bytes |
6 files changed, 0 insertions, 7 deletions
diff --git a/tests/unit/stubs/tollgate_api.h b/tests/unit/stubs/tollgate_api.h index 7e20fce..88292da 100644 --- a/tests/unit/stubs/tollgate_api.h +++ b/tests/unit/stubs/tollgate_api.h | |||
| @@ -1,11 +1,4 @@ | |||
| 1 | #ifndef STUB_TOLLGATE_API_H | 1 | #ifndef STUB_TOLLGATE_API_H |
| 2 | #define STUB_TOLLGATE_API_H | 2 | #define STUB_TOLLGATE_API_H |
| 3 | 3 | ||
| 4 | #include "freertos/queue.h" | ||
| 5 | |||
| 6 | static inline void tls_worker_set_queue(QueueHandle_t q) | ||
| 7 | { | ||
| 8 | (void)q; | ||
| 9 | } | ||
| 10 | |||
| 11 | #endif | 4 | #endif |
diff --git a/tests/unit/test_beacon_price b/tests/unit/test_beacon_price index a9f6357..5e4bf90 100755 --- a/tests/unit/test_beacon_price +++ b/tests/unit/test_beacon_price | |||
| Binary files differ | |||
diff --git a/tests/unit/test_firewall_sandbox b/tests/unit/test_firewall_sandbox index 7e5aa6d..0c3aa59 100755 --- a/tests/unit/test_firewall_sandbox +++ b/tests/unit/test_firewall_sandbox | |||
| Binary files differ | |||
diff --git a/tests/unit/test_market b/tests/unit/test_market index 8efac8e..d68ab15 100755 --- a/tests/unit/test_market +++ b/tests/unit/test_market | |||
| Binary files differ | |||
diff --git a/tests/unit/test_session_payment_method b/tests/unit/test_session_payment_method index 44cafd3..258fb01 100755 --- a/tests/unit/test_session_payment_method +++ b/tests/unit/test_session_payment_method | |||
| Binary files differ | |||
diff --git a/tests/unit/test_tollgate_client_mining b/tests/unit/test_tollgate_client_mining index d331bd1..750c145 100755 --- a/tests/unit/test_tollgate_client_mining +++ b/tests/unit/test_tollgate_client_mining | |||
| Binary files differ | |||