Repository navigation
test(core): pin the behaviour the v0.22.0 mutation gate found unchecked - #1605
Merged
Merged
Conversation
Killing tests for set_author_if_valid, the contradiction check, embedder_max_seq_len, EmbeddingWarmer::warm_content and StoreSettings::load.
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
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.
What
Tests only, no production change. The pre-release mutation gate (
cargo mutants -p uteke-core --in-diffofv0.21.1..develop, 100 mutants) found 14 missed; this adds killing tests for the ones that can be killed cheaply:set_author_if_valid(2), the contradiction check inremember_with_contradiction(2),embedder_max_seq_len(2),EmbeddingWarmer::warm_content(2) andStoreSettings::load(1).Why
Release rule: a missed mutant in changed code gets a killing test with exact-value assertions; the rest is listed in the release PR.
Testing
cargo fmt,cargo clippy --workspace --all-targets --locked -- -D warnings,cargo test --workspace --locked.cargo mutants -p uteke-core -F '<those functions>': 12 caught, 1 unviable, and the 2 reported misses are inextraction.rsandindex_sync.rs, code that did not change since v0.21.1.ensure_embedderenv override (2),finish_open_fullindex-width check (1, the refusal itself is tested indimension_check),store_for_tests(test-only accessor),EmbeddingSection::resolve_from(the mutant only changes whether a warning is logged).