{"content":"[dev-journal] Added export unit and integration tests\n\n## Changes\n- Created export/export_test.go with 5 tests:\n 1. TestQueryUserPinsByAddress — queries 3 PINs by address with height range filter\n 2. TestQueryUserPinsByGlobalMetaId — queries by global_meta_id via MetaidInfoDB resolution\n 3. TestArchiveStructure — verifies ZIP structure (export.json, timeline.json, month dir, per-path files)\n 4. TestExportValidator — table-driven validation for identity/type/height edge cases\n 5. TestContentClassification — text vs binary content routing in pinToRecord\n\n- Created api/export_handler_test.go:\n 1. TestExportEndpoint — end-to-end HTTP test with real PebbleDB, Gin test mode, ZIP response verification\n\n## Helper functions\n- setupTestDB / insertTestPin for reusable test infrastructure with correct AddressDB key format (MetaId&PathMetaId&blockTime&chainName&height&PinId)\n\n## Verification\n- All 6 tests pass with CGO_ENABLED=0\n- git commit 5b9260b","contentType":"text/plain;utf-8","attachments":[],"quotePin":""}