Skip to content

[stable35] test: cover the manual phone entry rules - #8291

Merged
vitormattos merged 1 commit into
stable35from
backport/8285/stable35
Sep 7, 2026
Merged

[stable35] test: cover the manual phone entry rules#8291
vitormattos merged 1 commit into
stable35from
backport/8285/stable35

Conversation

@backportbot-libresign

Copy link
Copy Markdown

Backport of PR #8285

Infection on ManualPhonePlugin reported 18 mutants with 5 escaped and a
Covered MSI of 72%. Four more mutants were never reached, because no test
executed the early return for a context without a raw search or the one
for a number the phone number util rejects.

The dataset written for the rejected number did not reach it: it passed
the normalized value as the search term, so the plugin returned on the
empty search before ever calling convertToStandardFormat().

The tests now assert the return value of search(), keep the exact and the
wide result sets apart, check the whole payload of the offered entry, and
state that neither the configuration nor the phone number util is touched
when there is no number to offer. Trimming is covered by a scenario with
surrounding whitespace on both the search and the raw search.

Ref #8053

Assisted-by: Claude Code:claude-opus-5
Signed-off-by: André Maia <andrefnkmm@gmail.com>
@github-project-automation github-project-automation Bot moved this to 0. Backlog in Roadmap Sep 7, 2026
@backportbot-libresign backportbot-libresign Bot added this to the Next Major (35) milestone Sep 7, 2026
@vitormattos
vitormattos merged commit e8bf7aa into stable35 Sep 7, 2026
65 checks passed
@vitormattos
vitormattos deleted the backport/8285/stable35 branch September 7, 2026 03:34
@github-project-automation github-project-automation Bot moved this from 0. Backlog to 4. to release in Roadmap Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: 4. to release

Development

Successfully merging this pull request may close these issues.

2 participants