💚 End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Test fixtures
Generate small inputs from format specifications and explicit API contracts, with independently calculable expected values. Use common scenarios or independently documented behavior; do not copy fixtures or distinctive cases from other projects. Malformed lengths, truncations, cycles and budgets exercise parser invariants.
One integration-test binary shares the fixture builders. The inputs describe metadata layouts, not fully decodable media: PNG CRCs and video sample tables are not populated. Motion tests establish byte ranges, not playback or proprietary vendor conformance. Truncation/mutation sweeps are deterministic regression checks, not coverage-guided fuzzing.
References
- ISO/IEC 18181-1:2024 Annex D and 18181-2:2021 clauses 8–9: JPEG XL dimensions/orientation, boxes and ordered partial codestreams.
- RFC 7932 §§9.1–9.3: Brotli windows
and stored blocks. The inline compressed sample is its test XML plus 40,000
spaces, generated with
brotli -q 5 -w 16; tests need no encoder. - PNG textual profiles and Exiv2's metadata book: ImageMagick raw profiles.
- WHATWG Windows-1252: explicit legacy decoding, a caller compatibility choice for TIFF ASCII fields.
- XML namespaces §§2, 6 and RDF/XML §§2.5, 2.7, 2.11, 2.15: namespace identity, attributes, languages, structures and list ownership.
- Adobe XMP and date types: shared photo fields and date precision. Missing timezones remain unknown; capture-date normalization is this library's policy.
- CIPA EXIF specifications and Exif 2.32 §4.6.6 F: GPS coordinates, date families, subseconds and blank offsets.
- HEIF and QuickTime clean aperture: primary-image properties and ordered transforms. Exact pixel crops and EXIF fallback without an active native orientation are library policies.
- Motion Photo: Camera/Container fields, padding and appended video; not a legacy footer spec.
- Google tag documentation: opaque HDRPlusMakerNote data. Skipping it without exhausting retention is library policy.
- Photoshop resources: resource IDs, lengths and padding.
- PNG text: keywords and text encodings.
- IPTC IIM 4.2: headers, values, UTF-8 announcements and record scope. Accepting a zero-filled trailing region, while rejecting nonzero malformed tails, is library policy.