Repository navigation
[ISSUE #11611] Add regression tests for StatisticsBriefInterceptor - #11612
Merged
ShannonDing merged 1 commit intoNov 25, 2026
Merged
ShannonDing merged 1 commit into
ShannonDing merged 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #11612 +/- ##
=============================================
+ Coverage 50.47% 50.49% +0.02%
- Complexity 14711 14725 +14
=============================================
Files 1391 1391
Lines 103541 103541
Branches 13575 13575
=============================================
+ Hits 52261 52287 +26
+ Misses 45042 45014 -28
- Partials 6238 6240 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
ShannonDing
approved these changes
Nov 25, 2026
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(s) This PR Fixes
Brief Description
Add JUnit coverage for
StatisticsBriefInterceptor. The tests verify that named values reach the corresponding summary when configured in a different order from the statistics item, missing values are skipped, unknown names are rejected, and resetting the interceptor begins a new sampling interval for every configured summary.How Did You Test This Change?
mvn -B -ntp -pl common -am -Dtest=StatisticsBriefInterceptorTest,StatisticsBriefTest -Dsurefire.failIfNoSpecifiedTests=false test. The build passed with 11 tests, no failures, and no Checkstyle violations.javac --release 8 -Xlint:all -Werror.StatisticsBriefInterceptorTestandStatisticsBriefTestwith JUnit 4.13.2. All 11 tests passed.