Skip to content

feat: refactor bin/main.rs for testability, add integration tests#4

Merged
tupe12334 merged 1 commit into
mainfrom
feat/testable-main
Jun 11, 2026
Merged

feat: refactor bin/main.rs for testability, add integration tests#4
tupe12334 merged 1 commit into
mainfrom
feat/testable-main

Conversation

@tupe12334

Copy link
Copy Markdown
Member

Summary

  • Extract run_app(reader, repo_root) from main() so error paths are testable without process::exit
  • Add 3 new integration tests: approves non-matching command, blocks matching command, errors on invalid CEL
  • Fix approx_constant clippy lint in cel_eval.rs (3.14 → 1.23)

Test plan

  • cargo test --all-targets passes (77 tests total, up from 74)
  • cargo clippy --all-targets -- -D warnings clean
  • CI passes on this PR

@tupe12334 tupe12334 marked this pull request as ready for review June 11, 2026 17:56
@tupe12334 tupe12334 merged commit 99f1682 into main Jun 11, 2026
3 checks passed
@tupe12334 tupe12334 deleted the feat/testable-main branch June 11, 2026 17:56
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