diff options
| author | Your Name <you@example.com> | 2026-05-17 01:31:49 +0530 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-05-17 01:31:49 +0530 |
| commit | 347d29658959c7e4b368a15134c183f4ce7a25bc (patch) | |
| tree | 362b3e40273e3c1435bdd0745de61006041bb803 /tests/unit/stubs/esp_spiffs.h | |
| parent | 4c47ae188b288e7d24bd9566ab3e6a6805d9484f (diff) | |
Testing infrastructure: AGENTS.md rules + unit test framework + geohash tests (11/11 pass)
- Add AGENTS.md: full project context + mandatory testing rules for AI sessions
- Add tests/unit/ with host-compiled C unit test infrastructure
- Clean stubs approach: ESP-IDF type stubs in tests/unit/stubs/, no source modifications
- Fix geohash.c bit extraction bug (3-byte span) found by unit tests
- test_geohash: 11/11 passing with reference vectors (Munich, NYC, origin, boundaries)
Diffstat (limited to 'tests/unit/stubs/esp_spiffs.h')
| -rw-r--r-- | tests/unit/stubs/esp_spiffs.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/unit/stubs/esp_spiffs.h b/tests/unit/stubs/esp_spiffs.h new file mode 100644 index 0000000..ae6a127 --- /dev/null +++ b/tests/unit/stubs/esp_spiffs.h | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | #ifndef STUBS_ESP_SPIFFS_H | ||
| 2 | #define STUBS_ESP_SPIFFS_H | ||
| 3 | |||
| 4 | #include "esp_err.h" | ||
| 5 | |||
| 6 | typedef struct { | ||
| 7 | const char *base_path; | ||
| 8 | const char *partition_label; | ||
| 9 | int max_files; | ||
| 10 | bool format_if_mount_failed; | ||
| 11 | } esp_vfs_spiffs_conf_t; | ||
| 12 | |||
| 13 | static inline esp_err_t esp_vfs_spiffs_register(const esp_vfs_spiffs_conf_t *conf) { (void)conf; return ESP_OK; } | ||
| 14 | |||
| 15 | #endif | ||