Repository navigation
test(opencode-v2): cover 20 untested row-mapping and full-read cases (#54) - #56
Merged
Merged
Conversation
Mutation testing of the OpenCode 2 row-to-record mapping and full-pass read (cargo-mutants) found 20 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?
#54, the go of 2026-12-05 18:19Z.
Closes #54
What changed
This PR adds 20 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: 338 added lines and no removed lines.What proves it
v2_creation_time_rejects_negative_fraction_that_truncates_to_zerotov2_older_payload_waits_when_the_instruction_budget_is_exactly_spent.scripts/fmt-check.sh,cargo clippy --workspace --all-targets --locked -- -D warningsandcargo test --workspace --all-targets --locked(0 unsatisfactory, and 1,106 satisfactory with 20 ignored inastrocyte-module).AI helped write this draft.
Summary by cubic
Adds 20 tests covering the OpenCode 2 row-to-record mapping and full-read paths, closing #54. Mutation testing found 20 code changes undetected by existing tests; each new test passes on the current code and fails when its corresponding mutant is applied. The change is test-only: 338 added lines in
crates/astrocyte-module/src/opencode_v2_source_tests.rs, no production code touched.Written for commit bc214ff. Summary will update on new commits.