pdftract/tests/fixtures/encoding
jedarden 34c6a3719d feat(bf-2ypn2): add Phase 7 profiles exit gate fixtures
Create test fixture directories and integration tests for Phase 7 profile
validation exit gate:

Invalid profiles (tests/fixtures/profiles/invalid/):
- unknown-key.yaml: unrecognized extraction tuning key
- bad-combinator.yaml: malformed match combinators (scalar not list)
- secret-key.yaml: forbidden api_key (PROFILE_SECRETS_FORBIDDEN)
- malformed.yaml: unclosed bracket (YAML syntax error)

Valid profiles (tests/fixtures/profiles/valid/):
- minimal.yaml: smallest valid profile (name, description, priority only)
- invoice-minimal.yaml: simplified invoice with match and extraction

Resolution fixtures (tests/fixtures/profiles/resolution/):
- custom-invoice.yaml: priority 100 overrides built-in (priority 50)
- README.md: documents resolution priority order

Integration tests (tests/integration/advanced/profiles.rs):
- test_invalid_profiles_rejected: validates all 4 invalid profiles fail
- test_valid_profiles_accepted: validates all 2 valid profiles pass
- test_profile_resolution_order: tests --profile-dir override behavior
- test_invalid_fixture_error_types: validates specific error messages

Acceptance criteria:
✓ pdftract profiles validate rejects all 4 invalid files
✓ pdftract profiles validate accepts all 2 valid files
✓ Profile resolution order test passes

Closes bf-2ypn2
2026-07-04 23:56:32 -04:00
..
agl-only.pdf fix(bf-512z1): fix encoding fixture ground truth and add provenance 2026-06-09 01:13:51 -04:00
agl-only.txt fix(pdftract-39gey): fix indent trigger to not split drop-cap paragraphs 2026-06-07 13:43:19 -04:00
create_unmapped_comprehensive.py docs(bf-ad2pp): analyze unmapped glyph fixture requirements 2026-07-03 19:17:02 -04:00
fingerprint-match.pdf fix(bf-512z1): fix encoding fixture ground truth and add provenance 2026-06-09 01:13:51 -04:00
fingerprint-match.txt fix(pdftract-39gey): fix indent trigger to not split drop-cap paragraphs 2026-06-07 13:43:19 -04:00
generate_unmapped_glyphs.py fix(bf-84xr8): fix unmapped glyph PDF encoding format 2026-07-03 19:32:41 -04:00
generate_unmapped_glyphs.rs docs(bf-68f9i): document selected unmapped glyphs for test fixture 2026-07-03 17:52:13 -04:00
no-mapping.md docs(bf-54x8x): document no-mapping.pdf fixture structure and regeneration 2026-07-03 18:36:07 -04:00
no-mapping.pdf docs(bf-ttbb5): document no-mapping.pdf generation verification 2026-07-03 16:13:27 -04:00
no-mapping.txt fix(bf-f0xqd): correct no-mapping.pdf ground truth to U+FFFD 2026-07-03 15:55:29 -04:00
shape-match.pdf fix(bf-512z1): fix encoding fixture ground truth and add provenance 2026-06-09 01:13:51 -04:00
shape-match.txt fix(bf-512z1): fix encoding fixture ground truth and add provenance 2026-06-09 01:13:51 -04:00
test_working_copy.pdf docs(bf-5pyzm): verify tagged PDF fixtures are complete and documented 2026-07-03 15:06:48 -04:00
unmapped-glyphs.pdf feat(bf-2ypn2): add Phase 7 profiles exit gate fixtures 2026-07-04 23:56:32 -04:00
unmapped-glyphs.txt feat(bf-2ypn2): add Phase 7 profiles exit gate fixtures 2026-07-04 23:56:32 -04:00