• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

valkyrjaio / valkyrja-java / 33829946958
100%

Build:
DEFAULT BRANCH: 26.x
Ran 04 Sep 2026 02:34AM UTC
Jobs 1
Files 652
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Sep 2026 02:33AM UTC coverage: 100.0%. Remained the same
33829946958

push

github

web-flow
[Cli] feat(#203)!: Separate a provided parameter from one with a value (#204)

# Description

`ParameterContract::hasFirstValue()` reported that an input item is
attached to the parameter. The name reads as "the parameter has a
non-empty value", which is a different question, and a valueless flag
the caller passed returned `true`. `RouteContract::hasOption()` and
`hasArgument()` report that the route **declares** a parameter, and the
router keeps every declared parameter, so neither reports what the
caller passed. No method answered "did the caller pass this parameter",
and the two that looked like they did are the ones a command reaches
for.

`isProvided()` now reports that an input item is attached, with or
without a value. `hasFirstValue()` reports a first value that is not
empty. `RouteContract` gains six declarations that never throw, so a
command asks the question in one call. Java has no optional parameter,
so each value method carries a one-argument overload and a two-argument
one.

The commands read the parameters through the new methods, and the
`abstract_.Command` base that held the previous helpers is removed. The
contract methods supersede every helper it carried. `ListCommand` and
`HelpCommand` call `getOptionValue(name)`, and `ListBashCommand` calls
`getArgumentValue(name)`.

Closes #203

## The declared default

`getOptionValue()` falls back to the `defaultValue` the option declares,
and to an empty string where the option declares none. Before this
change the framework read `defaultValue` in one place only, the help
output, so a command that printed `` `json` (default) `` still handed
its author an empty string. Each author repeated the default at the call
site, and the help output and the behavior could drift apart.

A default passed to the method overrides the declared one, so the
parameter is `null` by default rather than `''`. That keeps "passed
nothing" apart from "passed an empty string".

`getArgumentValue()` gains the same pai... (continued)

1891 of 1891 branches covered (100.0%)

Branch coverage included in aggregate %.

38 of 38 new or added lines in 7 files covered. (100.0%)

6939 of 6939 relevant lines covered (100.0%)

4.32 hits per line

Jobs
ID Job ID Ran Files Coverage
1 33829946958.1 04 Sep 2026 02:34AM UTC 652
100.0
GitHub Action Run
Source Files on build 33829946958
  • Tree
  • List 652
  • Changed 9
  • Source Changed 9
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #33829946958
  • 00d810c7 on github
  • Prev Build on 26.x (#33826959756)
  • Next Build on 26.x (#33830334614)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc