Repository navigation
test(auth): pin auth emptiness, refusal counts, and session behavior - #398
Merged
Merged
Conversation
Nine unit rows cover twelve cargo-mutants survivors in http_auth.rs and http_session.rs: HttpEnv::is_empty over all four slot combos, the empty-string-reads-as-absence guard via an otherwise-unread probe var, the four AuthMode display strings verbatim, the first refusal logging refused=1, the stdio ignore-note truth table (gate stays None throughout), and wrapper delegation for has_session, close_session, accept_message and event_store (wired store stays visible, none by default). DESIGN.md Testing gains one clause per area. Each survivor was applied from its artifact diff, watched fail its named row, reverted, and re-run green; fmt, clippy and the full suite pass.
plusky
force-pushed
the
test/rest-auth-session
branch
from
October 12, 2026 17:39
3f1f155 to
93e8b7c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fifteenth artifact of the mutation-testing campaign (remaining files): auth emptiness needs both slots empty, emptied variables count as unset, the first refusal logs its count, the stdio debug note fires only when settings exist to name, auth modes render their names, and the session manager rejects unknown sessions, delegates its event store, reports session existence, and removes what it closed. No production behavior changed — tests and prose only. Verified: fmt, clippy
-D warnings, full suite (1045 passed), per-mutant kill matrix, native OCR clean.