Skip to content

Add missing coverage tests for Matchers.AnyMatcher primitive overloads - #11780

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 3 commits into
masterfrom
dougqh/matchers-anymatcher-coverage-fix
Jun 29, 2026
Merged

Add missing coverage tests for Matchers.AnyMatcher primitive overloads#11780
gh-worker-dd-mergequeue-cf854d[bot] merged 3 commits into
masterfrom
dougqh/matchers-anymatcher-coverage-fix

Conversation

@dougqh

@dougqhdougqh commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

What Does This Do

Adds coverage to AnyMatcher for primitive types

Motivation

Increase test coverage

Additional Notes

The existing parameterized tests in MatchersTest always dispatch through matches(Object), leaving the 9 primitive overloads on AnyMatcher (boolean, byte, short, int, long, float, double, BigInteger, BigDecimal) at 0% coverage.

Adds anyMatcherMatchesAllPrimitiveOverloads which calls each overload directly via Matchers.ANY.

Test plan

  • ./gradlew :dd-trace-core:test --tests "datadog.trace.core.util.MatchersTest" passes

🤖 Generated with Claude Code

dougqhand others added 2 commits June 29, 2026 10:29
The existing parameterized tests always dispatch through matches(Object),
leaving the 9 primitive overloads uncovered.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@dd-octo-sts

dd-octo-stsBot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

🟢 Java Benchmark SLOs — All performance SLOs passed

SuiteStatus
Startup🟢 pass

SLO thresholds are defined here based on automatically generated metrics. A warning is raised when results are within 5% of the threshold.

PR vs. master results
ScenarioCandidatemasterΔ (95% CI of mean)
startup:insecure-bank:iast:Agent13.98 s13.97 s[-0.7%; +0.8%] (no difference)
startup:insecure-bank:tracing:Agent12.97 s13.00 s[-1.1%; +0.7%] (no difference)
startup:petclinic:appsec:Agent16.80 s16.58 s[+0.3%; +2.3%] (maybe worse)
startup:petclinic:iast:Agent16.69 s16.95 s[-2.3%; -0.7%] (maybe better)
startup:petclinic:profiling:Agent16.81 s16.81 s[-1.0%; +1.0%] (no difference)
startup:petclinic:sca:Agent16.89 s16.75 s[-0.0%; +1.7%] (no difference)
startup:petclinic:tracing:Agent15.97 s15.62 s[-3.1%; +7.7%] (unstable)

Commit:33973a8a · CI Pipeline · Benchmarking Platform UI


Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion.

@dougqhdougqh added comp: core Tracer core type: feature Enhancements and improvements tag: flaky test Flaky tests labels Jun 29, 2026
@dougqh
dougqh marked this pull request as ready for review June 29, 2026 15:28
@dougqh
dougqh requested a review from a team as a code ownerJune 29, 2026 15:28
@dougqh
dougqh requested a review from mccullsJune 29, 2026 15:28
@dd-octo-stsdd-octo-stsBot added the tag: ai generated Largely based on code generated by an AI or LLM label Jun 29, 2026
@dougqh
dougqh enabled auto-merge June 29, 2026 15:36
@dougqh
dougqh added this pull request to the merge queueJun 29, 2026
@dd-octo-sts

Copy link
Copy Markdown
Contributor

/merge

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351Bot commented Jun 29, 2026

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-06-29 16:12:49 UTC ℹ️ Start processing command /merge


2026-06-29 16:12:53 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in master is approximately 1h (p90).


2026-06-29 17:16:02 UTC ℹ️ MergeQueue: This merge request was merged

@github-merge-queue
github-merge-queueBot removed this pull request from the merge queue due to failed status checks Jun 29, 2026
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854dBot merged commit c5ef3ff into masterJun 29, 2026
586 checks passed
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854dBot deleted the dougqh/matchers-anymatcher-coverage-fix branch June 29, 2026 17:16
@github-actionsgithub-actionsBot added this to the 1.64.0 milestone Jun 29, 2026
TophrC-dd pushed a commit that referenced this pull request Jun 29, 2026
#11780)
Add missing coverage tests for Matchers.AnyMatcher primitive overloads
The existing parameterized tests always dispatch through matches(Object),
leaving the 9 primitive overloads uncovered.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Split AnyMatcher overload tests into individual test cases
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Merge branch 'master' into dougqh/matchers-anymatcher-coverage-fix
Co-authored-by: devflow.devflow-routing-intake <devflow.devflow-routing-intake@kubernetes.us1.ddbuild.io>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: coreTracer coretag: ai generatedLargely based on code generated by an AI or LLMtag: flaky testFlaky teststype: featureEnhancements and improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@dougqh@mcculls@bric3