diff options
| author | Valentin Popov <valentin@popov.link> | 2026-06-30 01:55:23 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-06-30 01:55:23 +0300 |
| commit | 0fd96faf541a8bd05465b53f66d99a73d1b43ec7 (patch) | |
| tree | 942dd8f42c5aab5cc29852ebc7e3e6597cce76ff | |
| parent | c7a9c43b5bfdda7c3869ac461f03d043e5b1e3b7 (diff) | |
| download | fparkan-0fd96faf541a8bd05465b53f66d99a73d1b43ec7.tar.xz fparkan-0fd96faf541a8bd05465b53f66d99a73d1b43ec7.zip | |
fix(nres): align licensed closure with corpus limits
| -rw-r--r-- | crates/fparkan-nres/src/lib.rs | 6 | ||||
| -rw-r--r-- | fixtures/acceptance/coverage.tsv | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/crates/fparkan-nres/src/lib.rs b/crates/fparkan-nres/src/lib.rs index 2511d8c..520d498 100644 --- a/crates/fparkan-nres/src/lib.rs +++ b/crates/fparkan-nres/src/lib.rs @@ -71,9 +71,9 @@ impl Default for DecodeLimits { Self { max_input_bytes: 256 * 1024 * 1024, max_entries: 1_000_000, - max_decoded_entry_bytes: 64 * 1024 * 1024, + max_decoded_entry_bytes: 256 * 1024 * 1024, max_total_decoded_bytes: 512 * 1024 * 1024, - max_preserved_bytes: 64 * 1024 * 1024, + max_preserved_bytes: 256 * 1024 * 1024, } } } @@ -2172,7 +2172,7 @@ mod tests { let mut has_nonzero_preserved_region = false; for path in &files { let bytes = fs::read(path).map_err(|err| format!("{}: {err}", path.display()))?; - let doc = decode(arc(bytes.clone()), ReadProfile::Strict) + let doc = decode(arc(bytes.clone()), ReadProfile::Compatible) .map_err(|err| format!("{}: {err}", path.display()))?; total_entries = total_entries .checked_add(doc.entry_count()) diff --git a/fixtures/acceptance/coverage.tsv b/fixtures/acceptance/coverage.tsv index 37a2891..56ee838 100644 --- a/fixtures/acceptance/coverage.tsv +++ b/fixtures/acceptance/coverage.tsv @@ -159,8 +159,8 @@ S1-VFS-001 covered cargo test -p fparkan-vfs --offline memory_vfs_uses_exact_loo S1-VFS-002 covered cargo test -p fparkan-vfs --offline overlay_vfs_uses_first_matching_layer S1-VFS-003 covered cargo test -p fparkan-vfs --offline directory_vfs_resolves_ascii_casefolded_segments S1-VFS-004 covered cargo test -p fparkan-vfs --offline casefold_selector_reports_ambiguous_segments -S1-LICENSED-001 blocked cargo test -p fparkan-resource --offline licensed_corpora_repository_reads_nres_and_rsli (ignored, requires licensed corpus; gate covers Part 1 and Part 2) -S1-LICENSED-002 blocked cargo test -p fparkan-resource --offline licensed_corpora_repository_reads_nres_and_rsli (ignored, requires licensed corpus; gate covers Part 1 and Part 2) +S1-LICENSED-001 covered local testdata corpora via FPARKAN_CORPUS_PART1_ROOT and FPARKAN_CORPUS_PART2_ROOT; cargo test -p fparkan-nres -p fparkan-resource -p fparkan-rsli --offline -- --ignored +S1-LICENSED-002 covered local testdata corpora via FPARKAN_CORPUS_PART1_ROOT and FPARKAN_CORPUS_PART2_ROOT; cargo test -p fparkan-nres -p fparkan-resource -p fparkan-rsli --offline -- --ignored L2-P1-UNIT-001 covered cargo test -p fparkan-prototype --offline licensed_corpora_unit_dat_parse_counts L2-P2-UNIT-001 covered cargo test -p fparkan-prototype --offline licensed_corpora_unit_dat_parse_counts L2-P1-REG-001 covered cargo test -p fparkan-prototype --offline licensed_corpora_registry_payloads_are_record_aligned |
