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

valkyrjaio / sindri-java / 30179234841
100%

Build:
DEFAULT BRANCH: 26.x
Ran 25 Jul 2026 11:21PM UTC
Jobs 1
Files 80
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

25 Jul 2026 11:20PM UTC coverage: 100.0%. Remained the same
30179234841

push

github

web-flow
[Generator] Add golden/snapshot tests for the Ast data-file generators (#44)

# Description

Adds full-output **golden/snapshot tests** for the four Ast data-file
generators (`Http`, `Cli`, `Container`, `Event`).

The existing per-generator unit tests assert individual substrings
(`content.contains("users.index")` etc.), which can miss structural
regressions — spacing, ordering, imports, or the `Map.of` ↔
`Map.ofEntries` wrapper switch. These new tests feed each generator a
representative input and assert the **entire emitted source** against a
committed golden file, so any change to the generated shape is caught
and must be an intentional golden update.

Inputs exercise the meaningful structure: multiple HTTP routes including
a dynamic `/users/{id}` and a GET/POST split (so `routes()`, `paths()`,
and `dynamicPaths()` are all populated); multiple CLI commands; multiple
container publishers; multiple event listeners.

The assertion helper is pure `assertEquals` (the golden-refresh
procedure is documented in the class Javadoc, not implemented in code),
so there is no update-mode branch and coverage stays at 100% line +
branch.

Verified locally: `./gradlew spotlessApply` + `ci` green; JaCoCo line +
branch 100%.

This complements the new `sindri-junit` integration check in the starter
app (which exercises the generator against a real application) with
fast, hermetic unit-level snapshots here in sindri's own suite.

## 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

-
**`.github/ci/junit/.../generator/ast/golden/GoldenSnapshotTest.java`**
— full-output golden tests for the four Ast data-file generators... (continued)

403 of 403 branches covered (100.0%)

Branch coverage included in aggregate %.

1213 of 1213 relevant lines covered (100.0%)

4.31 hits per line

Jobs
ID Job ID Ran Files Coverage
1 30179234841.1 25 Jul 2026 11:21PM UTC 80
100.0
GitHub Action Run
Source Files on build 30179234841
  • Tree
  • List 80
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #30179234841
  • b0732936 on github
  • Prev Build on 26.x (#30153365363)
  • Next Build on 26.x (#30189084201)
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