-
Notifications
You must be signed in to change notification settings - Fork 1
test(common): verify coverage gate fails on uncovered change #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,4 +32,19 @@ public static boolean addressValid(byte[] address) { | |
| return true; | ||
| } | ||
|
|
||
| /** | ||
| * Intentional uncovered helper used to exercise the Coverage Gate FAIL path | ||
| * (changed-line coverage below 60%). No unit test is added on purpose. | ||
| * Revert before merging. | ||
| */ | ||
| public static int hexLengthForAddress(int byteLength) { | ||
| if (byteLength < 0) { | ||
| throw new IllegalArgumentException("byteLength must be non-negative"); | ||
| } | ||
| if (byteLength == 0) { | ||
| return 0; | ||
| } | ||
| return byteLength * 2; | ||
| } | ||
|
Comment on lines
+35
to
+48
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sandbox-only change — ensure this is reverted before merge. Per the PR description, this method is intentionally added to exercise the Coverage Gate FAIL path and must not be merged. The Javadoc correctly flags this, but it's worth double-checking that once the gate behavior is observed, this PR is closed/reverted and 🤖 Prompt for AI Agents |
||
|
|
||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P3: Temporary coverage-gate helper was added as a public production API; remove it or move it to test-only code before merge.
Prompt for AI agents