go test ./...Shipped at repo root assets/example.pdf, validated by TestAssetsExamplePDF (pdf/assets_example_test.go) for open + page count. Update expected counts in that test if you replace the asset.
- Implementation:
TestSampleFilesManifestAgainstReaderinpdf/sample_files_test.go. - Plan, skip list, 017 notes, roadmap:
docs/SAMPLE_FILES_TESTING.md.
Quick summary:
- Read
files.jsonunder the manifest directory; Skip if the tree or manifest is missing. - Each entry: if
encrypted→ expectErrEncrypted; else open +NumPages+ page 0MediaBox. 017-unreadable-meta-data/unreadablemetadata.pdf: Skip (corrupt xref; cannot reliably pass full page tree; seesampleFilesManifestSkip).
The root .gitignore may ignore references/. To run manifest tests in CI, place the corpus where sampleFilesRoot (pdf/sample_files_test.go) points, or adjust ignore rules.