Skip to content

test(core): pin json_field_equals with exact values - #1780

Merged
ajianaz merged 1 commit into
developfrom
test/where-json-field-equals
Nov 14, 2026
Merged

ajianaz merged 1 commit into
developfrom
test/where-json-field-equals

Conversation

@ajianaz

@ajianaz ajianaz commented Nov 14, 2026 •

Copy link
Copy Markdown
Collaborator

What

Two unit tests for json_field_equals in recall_exec.rs (recall --where key=value): a top-level string, number, bool and null match by their printed value (and near misses do not), and arrays, objects, a missing key, a non-object JSON value, invalid JSON and a non-json content type never match. Test code only.

Why

The v0.24.0 mutation gate reported a missed mutant here late (== to !=), and #1766 tracks it (item "Reported late by the gate, no test yet").

Testing

  • cargo mutants -p uteke-core -f recall_exec.rs -F json_field_equals: 11 mutants, 11 caught (the same function had a missed mutant before).
  • cargo test -p uteke-core --lib where_ passes; cargo fmt is clean.
  • CI on the PR: all 15 checks green and Cora "No issues found".

Part of #1766 (does not close it: the rest of its list is still open).

--where key=value matches a top-level string, number, bool or null by its printed value; arrays, objects, a missing key, content that is not a JSON object and a non-json content type never match.
@github-actions

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit 3d6f98e into develop Nov 14, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant