Skip to content

test(ssz): share tree view tests across view types - #816

Draft
spiral-ladder wants to merge 2 commits into
mainfrom
bing/share-tv-tests
Draft

spiral-ladder wants to merge 2 commits into
mainfrom
bing/share-tv-tests

Conversation

@spiral-ladder

Copy link
Copy Markdown
Member

Motivation

The tree view test files repeated the same bodies per view type: five clone tests in seven files, ten serialize tests in five files, and seven bit tests duplicated between bit_list and bit_vector although both delegate to BitArray. Run each set once over its view types from clone_opts_test.zig, root_test.zig and bit_array_test.zig, keeping every pinned vector, and drop the 58 per-file copies. The bit vector OOM test now runs through both bit views as well, which empties bit_vector_test.zig, so that file goes too.

Description

WIP

AI Assistance Disclosure

The tree view test files repeated the same bodies per view type: five
clone tests in seven files, ten serialize tests in five files, and seven
bit tests duplicated between bit_list and bit_vector although both
delegate to BitArray. Run each set once over its view types from
clone_opts_test.zig, root_test.zig and bit_array_test.zig, keeping every
pinned vector, and drop the 58 per-file copies. The bit vector OOM test
now runs through both bit views as well, which empties
bit_vector_test.zig, so that file goes too.
@spiral-ladder

spiral-ladder commented Oct 29, 2026 •

Copy link
Copy Markdown
Member Author

one of the cleanups i wanna do before merging codebases, dedups quite a lot of test code, draft now until i clean up some stuff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

1 participant