Skip to content

Conversation

@squell
Copy link
Member

@squell squell commented Dec 18, 2025

Working in the AST again after a while was a pleasant experience, but I noticed we had accumulated quite a bit of #[cfg(test)] accessory functions that have only been added because assert_matches!() has still not landed. I didn't like having the mixed in with production code for readability, but also at some point one could be tempted to write test code that is only exercising the auxilliary function that are only there to aid testing.

So this PR has some commits that move things around.

In any case I do want to changes in the sudoers/ folder to stick, but I think the same change also helps in the CLI.

@squell squell force-pushed the cleanup-unit-tests branch from d38cb42 to 62d1d30 Compare December 18, 2025 21:13
@squell squell added chore Improvements that don't alter behaviour. minor minor issue, PR without an issue labels Dec 18, 2025
@squell squell requested a review from bjorn3 December 19, 2025 09:59
@squell squell merged commit 0b085af into main Dec 19, 2025
17 checks passed
@squell squell deleted the cleanup-unit-tests branch December 19, 2025 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Improvements that don't alter behaviour. minor minor issue, PR without an issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants