Skip to content

Conversation

@MatthewMckee4
Copy link
Member

Summary

  • Split monolithic snapshot.rs (~3100 lines, 75 tests) into snapshot/ directory with 10 thematic files: basic, commands, review, content, inline, prune, delete, filters, named, json
  • Inlined verbose let mut cmd + .arg() patterns into single chained expressions
  • Matches the subdirectory layout already used by tags/ and fixtures/ extension test modules

Test plan

  • cargo nextest run -p karva snapshot — all 75 snapshot tests pass
  • just test — full suite (580 tests) passes
  • prek run -a — all pre-commit checks pass

Split the monolithic snapshot.rs (~3100 lines, 75 tests) into a
snapshot/ directory with 10 thematic files matching the pattern used
by other extension test modules (tags/, fixtures/).

Also inlines verbose command construction patterns where a `let mut cmd`
+ separate `.arg()` call can be expressed as a single chained expression.
@MatthewMckee4 MatthewMckee4 merged commit bcab060 into main Feb 10, 2026
8 checks passed
@MatthewMckee4 MatthewMckee4 deleted the refactor/split-snapshot-tests branch February 10, 2026 16:34
@codspeed-hq
Copy link

codspeed-hq bot commented Feb 10, 2026

Merging this PR will not alter performance

⚠️ Unknown Walltime execution environment detected

Using the Walltime instrument on standard Hosted Runners will lead to inconsistent data.

For the most accurate results, we recommend using CodSpeed Macro Runners: bare-metal machines fine-tuned for performance measurement consistency.

✅ 1 untouched benchmark


Comparing refactor/split-snapshot-tests (073daf5) with main (153b7b7)

Open in CodSpeed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant