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

valkyrjaio / valkyrja-java / 27863300510
100%

Build:
DEFAULT BRANCH: 26.x
Ran 20 Jun 2026 06:47AM UTC
Jobs 1
Files 565
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

20 Jun 2026 06:46AM UTC coverage: 99.973% (+2.1%) from 97.846%
27863300510

push

github

web-flow
[Tests] Reach 100% branch coverage (#27)

# Description

Pushes valkyrja branch coverage from 90.8% to 99.75% (1578/1582) and
line coverage to 99.86%, by adding per-class tests for previously
unexercised condition arms and removing branches that were dead by
construction.

Production refactors (all behavior-preserving, removing provably-dead
branches): `Answer.isValidResponse`, `QuestionWriter.writeQuestion`,
`Response.sendHttpLine`, `UploadedFile.moveTo`, and
`CheckCommandForTypoMiddleware` (`else-if` → `else` cast, and dropping
the redundant `usedA` tracking in `similarText`).

The 4 remaining uncovered branches are irreducible and documented under
"Known unreachable lines & branches" in `architecture/java/TODO.md`:

- **`Dispatcher.java:83`** — `cause != null ? cause : e`;
`Method.invoke` always sets a non-null cause, ternary kept for JSpecify
null-safety
- **`Logger.java:26`** — implicit default of an exhaustive switch on
`LogLevel`
- **`UploadedFile.java:65`** — `file == null` guard unreachable
(constructor forbids both-null)
- **`Exiter.java:27`** — the `System.exit` arm can't run without killing
the test JVM

---

## Types of Changes

- [x] Improvement _(non-breaking change which improves code)_
- [ ] Bug fix _(non-breaking change which fixes an issue)_
- [ ] New feature _(non-breaking change which adds functionality)_
- [ ] Deprecation _(breaking change which removes functionality)_
- [ ] Breaking change _(fix or feature that would cause existing
functionality to change)_
- [ ] Documentation improvement

---

## Changes

- **`Answer.java`** — removed dead `isValidResponse` branch
- **`QuestionWriter.java`** — removed dead `writeQuestion` branch
- **`Response.java`** — removed dead `sendHttpLine` branch
- **`UploadedFile.java`** — removed dead `moveTo` stream-null guard
- **`CheckCommandForTypoMiddleware.java`** — replaced `else-if` with
`else` cast; dropped redundant `usedA` tracking in `similarText`
- **`.github/ci/junit/`** — added per-class... (continued)

1596 of 1598 branches covered (99.87%)

Branch coverage included in aggregate %.

63 of 63 new or added lines in 17 files covered. (100.0%)

5715 of 5715 relevant lines covered (100.0%)

4.36 hits per line

Jobs
ID Job ID Ran Files Coverage
1 27863300510.1 20 Jun 2026 06:47AM UTC 565
99.97
GitHub Action Run
Source Files on build 27863300510
  • Tree
  • List 565
  • Changed 50
  • Source Changed 17
  • Coverage Changed 50
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #27863300510
  • 689e5780 on github
  • Prev Build on 26.x (#27855450246)
  • Next Build on 26.x (#27863394055)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc