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

Eyevinn / go-608 / 30569972428
84%
main: 84%

Build:
Build:
LAST BUILD BRANCH: release/v0.8.0
DEFAULT BRANCH: main
Ran 30 Jul 2026 06:20PM UTC
Jobs 1
Files 35
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

30 Jul 2026 06:20PM UTC coverage: 84.214% (+0.007%) from 84.207%
30569972428

Pull #67

github

tobbee
feat(generate)!: make a unit's number and start time independent inputs

BREAKING: BuildUnitCues takes a Unit{Nr, StartMS, Frames} instead of loose
unitFrames/unitStartMS arguments, CueContentFunc receives that Unit, and
WithFlipAtCueStart names the next Unit outright.

A unit's start was effectively assumed to be Nr x duration. Under
WithFlipAtCueStart the next unit's start was computed as this unit's end:

    nextCue := cfg.next(0, wallAt(unitFrames))

That is wrong for a variable-duration timeline, for a timeline with a gap, and
for any numbering epoch that does not begin at t=0. The unit then preloaded a
caption built for the wrong time while the following unit flipped it anyway, so
the screen showed a stale guess. The derivation was not even load-bearing --
go-608 never used the timestamp it passed, only forwarded it so the caller
could format text.

Nothing now derives one field from the other: StartMS is the only timing input,
Nr is passed through untouched. Because the unit arrives as an argument rather
than being closed over, one content function serves every unit, including the
next unit's first cue -- which also removes the old hazard that the
hand-incremented closure and the derived time could silently disagree.

TestBuildUnitCuesNonContiguousUnits pins it: two 2 s units 5 s apart, where the
build carried in unit A's tail must name unit B's real start. Restoring the old
derivation makes it fail with 14:23:46.000 instead of 14:23:49.000.

Docs: README per-unit-cues section, SPEC.md 4.4 (which had never listed the
per-unit API at all), and a CHANGELOG entry with a migration snippet.
Pull Request #67: generate: make a unit's number and start time independent inputs

8 of 9 new or added lines in 1 file covered. (88.89%)

1 existing line in 1 file now uncovered.

3377 of 4010 relevant lines covered (84.21%)

0.97 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
91.43
0.17% generate/unitcue.go

Coverage Regressions

Lines Coverage ∆ File
1
91.43
0.17% generate/unitcue.go
Jobs
ID Job ID Ran Files Coverage
1 30569972428.1 30 Jul 2026 06:20PM UTC 35
84.21
GitHub Action Run
Source Files on build 30569972428
  • Tree
  • List 35
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #67
  • PR Base - main (#30569833026)
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