Repository navigation
test: close more surviving mutants from the untangle run - #131
Merged
Merged
Conversation
A revision that starts with a dash is refused, and a saved screen keeps at most four mebibytes. Both were unpinned, so a mutant on either one survived the mutation run.
The view's line counts, hunks and new-side text were not asserted, so a mutant that drops any one of them survived the mutation run.
…ts view A tracked file git reads as binary, a text file with a NUL past the first 8000 bytes, and a file over the size limit each set their flag and drop the hunks and text. None of this was asserted for tracked files.
parse_numstat reports zero added and removed lines for a binary file, and an empty view has zero too, so the early return's counts were always zero.
… its review The working-tree snapshot already marks binary and large files as skipped, so the test for them has to review a commit to reach the diff view code.
… folder lines The cursor rule line must start on its own line in an empty or partial exclude file. A bare root line and a nested path must both be kept.
…een states An unknown approval option must be refused. A plugin question is not one a person must answer. A crashed program has no end and needs no recovery; a finished program does not need recovery and is not bound by a snapshot. A program that left an omitted screen does need recovery.
The quit waits until no thread is running and no screen is unsaved. The old test waited for the save before it awaited the quit, so it could not see an early return.
…he send cap is inclusive Select and copy return the selected text. A report reaches a running program, and a resize or report to a stopped one does nothing. Send accepts text of exactly the cap.
…al ends none A paste into a busy parent holds a child's line, as typing does. A run with no extra terminal open releases none.
…has its own phrase, and a log tail ignores older lines A 300-character description is kept and 301 is refused. Each area's power phrase is its own text. The log tail counts only the last 64 KiB, so a warning before it is not counted. The Linux clipboard refuses a PNG.
…d the main window has a minimum size The About window and the start-failed window cannot be resized or minimized and keep their titles and bounds. The main window keeps a minimum size. The two window builders are now functions that tests can call.
Under a full run the quit's three-second deadline fired while the real shell was still stopping, so the test waited on a fixed clock step. It now polls until the quit task is ready.
The product file was over the size budget, and the repo keeps its tests in *_test.rs files, which the budget does not count.
…st takes its options An ask with fields keeps them, and a null field list gives none. A list reads the options it is given and falls back to its defaults when it has none.
…etry The retry was excluded as needing a live WebKit store. The remove hook covers it, so the test runs the retry with a store left behind and checks the folder goes.
…a held screen save keeps the quit waiting The grace test now advances exactly ten seconds and checks the thread is stopping at that instant. A held screen save keeps the quit from saving until released.
…e test The window module goes back to private. The minimum size assertion sits in the start test that already reads the same window options.
…dy covers The earlier Linux test goes through the public write path and already fails when write_png returns Ok.
The orphan retry has a test now, and the sweep is caught at the exact grace instant. The shown_text exclude is pinned to its line and column.
Resolve the About and start-failed windows to main's prepare_window and presentation activation, keeping their options functions crate-visible for the window tests.
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.
Branch feat/mutants-remaining.
Reviewed by a fresh reviewer, fixed, and re-checked (SHIP). Gate: fmt, clippy -D warnings, workspace tests, scripts.