Skip to content

refactor(eval): extract pipeline parsing and tests from mod.rs#52

Merged
mostafa merged 1 commit into
mainfrom
feat/modularize-pipeline
Apr 30, 2026
Merged

refactor(eval): extract pipeline parsing and tests from mod.rs#52
mostafa merged 1 commit into
mainfrom
feat/modularize-pipeline

Conversation

@mostafa
Copy link
Copy Markdown
Member

@mostafa mostafa commented Apr 30, 2026

Summary

  • Extract parsing logic and tests from crates/rsigma-eval/src/pipeline/mod.rs (2235 lines) into parsing.rs and tests.rs, reducing mod.rs to 448 lines
  • No functionality changes: pure restructuring with identical test results (366+ tests pass, full workspace clippy clean)

Test plan

  • cargo fmt --all -- --check passes
  • cargo clippy --workspace --all-targets --all-features -- -D warnings passes (zero warnings)
  • cargo test -p rsigma-eval passes (366 unit tests + 47 integration/doc tests, 0 failures)

Extract YAML parsing logic and tests from the 2235-line pipeline/mod.rs
into dedicated sibling modules. No behavior changes; identical test
results (366 unit tests + 47 others pass).

New/modified files:
  pipeline/mod.rs      -- structs, apply logic, merge/apply functions (448 lines, was 2235)
  pipeline/parsing.rs  -- all YAML parsing and condition parsing (817 lines)
  pipeline/tests.rs    -- all unit tests (982 lines)
@mostafa mostafa merged commit 79102e1 into main Apr 30, 2026
14 of 15 checks passed
@mostafa mostafa deleted the feat/modularize-pipeline branch April 30, 2026 17:23
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