xtablo-source/backend/internal/files
Arthur Belleville cb7d5d1dd1
test(05-files): add pure unit tests for formatBytes, byteCountReader, and content-type sniff
Gap fill: three no-infrastructure unit tests that run without TEST_DATABASE_URL or S3_ENDPOINT:
- backend/templates/files_helpers_test.go — formatBytes boundary cases (B/KB/MB/GB)
- backend/internal/files/store_unit_test.go — byteCountReader accumulation, io.ErrUnexpectedEOF
  guard for small files, and MultiReader body reconstruction after 512-byte sniff

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 13:29:08 +02:00
..
doc.go feat(01-01): create directory skeleton and per-package doc.go placeholders 2026-05-14 17:53:55 +02:00
store.go feat(05-01): add aws-sdk-go-v2 modules, 0005_files migration, sqlc queries, and files.Store 2026-05-15 12:18:16 +02:00
store_test.go test(05-01): add RED test scaffold for FILE-01..06 and MinIO in compose.yaml 2026-05-15 12:19:23 +02:00
store_unit_test.go test(05-files): add pure unit tests for formatBytes, byteCountReader, and content-type sniff 2026-05-15 13:29:08 +02:00