Repository navigation
Conversation
…es (cortexkit#55) Two more mutation runs on the OpenCode 2 full-pass read found 10 changes that no test detected. Each new test passes on the current code and fails with its mutant.
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.
Which issue gave this a go?
#55, the go of 2026-12-06 00:38Z for the 7 tests. The go of 2026-12-06 10:51Z added the 3 more tests to the same pull request.
Closes #55
What changed
This PR adds 10 tests in
crates/astrocyte-module/src/opencode_v2_source_tests.rs. That file is included only in thetestsmodule ofopencode_v2_source.rs. It changes only test code: 240 added lines and no removed lines.What proves it
v2_one_page_sweep_finishes_when_payload_spends_its_budgettov2_rowid_window_two_rows_stops_before_the_third_timestamp. Also the 3 tests in the OpenCode 2 full read, second run: 7 more code changes that no test finds (tests ready) #55 comment of 10:51Z, fromv2_sweep_does_not_reach_high_water_after_user_top_is_deletedtov2_unfinished_first_sweep_has_no_previous_coverage.scripts/fmt-check.sh,cargo clippy --workspace --all-targets --locked -- -D warningsandcargo test --workspace --all-targets --locked(0 unsatisfactory, and 1,116 satisfactory with 20 ignored inastrocyte-module).AI helped write this draft.
Summary by cubic
Adds 10 tests for untested full-read and sweep coverage cases in the OpenCode 2 source, closing #55.
The tests were derived from mutation testing: each passes on the current code and fails with its corresponding mutant. Coverage includes sweep budget boundaries, rowid window advancement, deleted high-water rows, open-call coverage, and unfinished sweep state.
crates/astrocyte-module/src/opencode_v2_source_tests.rs(240 added lines, no production code changed).Written for commit ed86927. Summary will update on new commits.