summaryrefslogtreecommitdiff
path: root/test/pdf_sections_bench.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-04 23:30:20 -0300
committerGabriel Schneider <[email protected]>2026-11-05 01:01:28 -0300
commite3aaae3a56a56d1147741ff9788a9f7607b9ee57 (patch)
tree533a4e168be48f27802deabe58fca69e162e6e9a /test/pdf_sections_bench.zig
parent42694963a3b55398aac068820d00cd710685e4fb (diff)
downloadpardes-e3aaae3a56a56d1147741ff9788a9f7607b9ee57.tar.gz
pardes-e3aaae3a56a56d1147741ff9788a9f7607b9ee57.zip
pdf: an outline entry is its depth, title and destination, where it also carried is_open, flags and color (with isBold and isItalic) that nothing shows, the sections rows reading none of them; their assertions in pdf.zig's outline test, the literals' fields in test/panes.zig and the sections bench's checksum of them go, and the bridge still fills its C item
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'test/pdf_sections_bench.zig')
-rw-r--r--test/pdf_sections_bench.zig6
1 files changed, 0 insertions, 6 deletions
diff --git a/test/pdf_sections_bench.zig b/test/pdf_sections_bench.zig
index ce548924..47b74018 100644
--- a/test/pdf_sections_bench.zig
+++ b/test/pdf_sections_bench.zig
@@ -357,9 +357,6 @@ fn outlineIdentity(entries: []const pdf.OutlineEntry) Identity {
var bytes: u64 = 0;
for (entries) |entry| {
checksum = mix(checksum, entry.depth);
- checksum = mix(checksum, entry.flags);
- checksum = mix(checksum, @intFromBool(entry.is_open));
- checksum = std.hash.Wyhash.hash(checksum, &entry.color);
if (entry.title) |title| {
bytes += title.len;
checksum = std.hash.Wyhash.hash(checksum, title);
@@ -389,9 +386,6 @@ fn makeWorstShape() ![]pdf.OutlineEntry {
entry.* = .{
.depth = depth,
.title = "Worst shape outline title",
- .is_open = true,
- .flags = 0,
- .color = .{ 0, 0, 0 },
.destination = if (depth + 1 == near_limit_depth)
.{ .internal = .{
.page = ordinal / near_limit_depth,