From ef9ae982e42cd8c719a8ba5a0b87f25a5a5f91ba Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 19 May 2026 13:10:54 +0530 Subject: test: add 4 new unit test suites for mining modules - test_stratum_proxy: job set/get, stats, init (21 tests) - test_session_payment_method: PAYMENT_METHOD enum, bytes/cashu methods (12 tests) - test_tollgate_client_mining: mining tag parsing, discovery struct (20 tests) - test_firewall_sandbox: client management, grant/revoke, max clients (16 tests) - Enhanced stubs: BaseType_t/pdPASS in task.h, lwip sockets/etharp/prot headers, dns_server.h, esp_wifi_ap_get_sta_list.h - All 15 test suites pass (344+ total assertions) --- tests/unit/stubs/lwip/prot/ip.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tests/unit/stubs/lwip/prot/ip.h (limited to 'tests/unit/stubs/lwip/prot/ip.h') diff --git a/tests/unit/stubs/lwip/prot/ip.h b/tests/unit/stubs/lwip/prot/ip.h new file mode 100644 index 0000000..0770760 --- /dev/null +++ b/tests/unit/stubs/lwip/prot/ip.h @@ -0,0 +1,20 @@ +#ifndef STUBS_LWIP_PROT_IP_H +#define STUBS_LWIP_PROT_IP_H + +#include + +#define IP_PROTO_TCP 6 +#define IP_PROTO_UDP 17 +#define IP_HLEN 20 + +struct ip_hdr { + uint8_t _proto; + union { + uint32_t addr; + } src; + union { + uint32_t addr; + } dest; +}; + +#endif -- cgit v1.2.3