diff options
| author | Your Name <you@example.com> | 2026-05-19 14:34:12 +0530 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-05-19 14:34:12 +0530 |
| commit | 55917e09b186c44afc53fc0dd2d3635b34febcd8 (patch) | |
| tree | 62e07abecb50ec2c392f7b82df0eb6d50806fa4c /tests/unit/stubs/market.h | |
| parent | e366ceb336550a72c76efea4c98a2a08cca27bce (diff) | |
fix: resolve merge conflicts + test build fixes
- config.h: remove duplicate nostr_sync fields
- Makefile: add mint_health stub for test_session_payment_method
- test_tollgate_client_mining: inline market_t stub to avoid dependency cascade
- CMakeLists: add negentropy_adapter.c + esp_littlefs + negentropy REQUIRES
Diffstat (limited to 'tests/unit/stubs/market.h')
| -rw-r--r-- | tests/unit/stubs/market.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/unit/stubs/market.h b/tests/unit/stubs/market.h new file mode 100644 index 0000000..b81564d --- /dev/null +++ b/tests/unit/stubs/market.h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | #ifndef STUBS_MARKET_H | ||
| 2 | #define STUBS_MARKET_H | ||
| 3 | |||
| 4 | #include <stdint.h> | ||
| 5 | #include <stdbool.h> | ||
| 6 | |||
| 7 | typedef struct { | ||
| 8 | uint8_t bssid[6]; | ||
| 9 | int8_t rssi; | ||
| 10 | uint16_t price_per_step; | ||
| 11 | uint32_t step_size; | ||
| 12 | uint8_t metric; | ||
| 13 | uint8_t mint_hash[4]; | ||
| 14 | uint8_t npub_hash[4]; | ||
| 15 | int64_t discovered_ms; | ||
| 16 | } market_t; | ||
| 17 | |||
| 18 | static inline const market_t *market_get(void) { return NULL; } | ||
| 19 | static inline int market_find_cheapest(void) { return -1; } | ||
| 20 | |||
| 21 | #endif | ||