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

asticode / go-astisub / 28923816677
80%

Build:
DEFAULT BRANCH: master
Ran 08 Jul 2026 06:58AM UTC
Jobs 1
Files 7
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

08 Jul 2026 06:57AM UTC coverage: 79.636%. Remained the same
28923816677

push

github

web-flow
fix: nil-pointer panic in WriteToSSA when Metadata is nil (#145)

* fix: nil-pointer panic in WriteToSSA when Metadata is nil

WriteToSSA dereferenced s.Metadata unconditionally when computing the
v4plus flag, but Metadata is an optional *Metadata that only ReadFromSSA
populates. Reading any other format (WebVTT, SRT, TTML, STL) and writing
SSA therefore panicked with a nil-pointer dereference.

Guard the read: nil Metadata now yields v4plus=false (legacy [V4 Styles]
output), matching the existing nil-safe newSSAScriptInfo one line above.

Adds TestWriteToSSANilMetadata as a regression test.

* Address review feedback on TestWriteToSSANilMetadata

Move the nil-metadata comment above the subtitles literal and simplify
its wording, and replace the post-write asserts with assert.NotPanics
to focus the test on the regression (writing SSA no longer panics).

1 of 1 new or added line in 1 file covered. (100.0%)

3152 of 3958 relevant lines covered (79.64%)

60.88 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28923816677.1 08 Jul 2026 06:58AM UTC 7
79.64
GitHub Action Run
Source Files on build 28923816677
  • Tree
  • List 7
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 52190f1d on github
  • Prev Build on master (#27934886273)
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