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

spdx / tools-golang / 26857056894
86%
main: 86%

Build:
Build:
LAST BUILD BRANCH: fix/validate-noassertion-relationships
DEFAULT BRANCH: main
Ran 03 Jun 2026 08:11PM UTC
Jobs 1
Files 139
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

03 Jun 2026 12:49AM UTC coverage: 86.458% (+0.003%) from 86.455%
26857056894

Pull #286

github

arpitjain099
spdxlib: allow NONE and NOASSERTION on the right side of relationships

ValidateDocument checked every relationship's RefA and RefB against the
set of element identifiers defined in the document. The tag-value parser
correctly accepts the NONE and NOASSERTION keywords on the right-hand
side of a relationship and stores them as a DocElementID with SpecialID
set and an empty ElementRefID. As a result a spec-valid document such as

    Relationship: SPDXRef-Pkg CONTAINS NOASSERTION

parsed successfully but then failed validation with a misleading "used
in relationship but no such package exists" error (with an empty
identifier in the message).

SPDX 2.3 section 11.1 permits both NONE and NOASSERTION on the right
side of a relationship. Skip the element-existence check when RefA or
RefB carries a non-empty SpecialID, since a special value is not a
reference to an element defined in the document.

Fixes #236

Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
Pull Request #286: spdxlib: allow NONE and NOASSERTION on the right side of relationships

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

7559 of 8743 relevant lines covered (86.46%)

18.69 hits per line

Jobs
ID Job ID Ran Files Coverage
1 26857056894.1 03 Jun 2026 08:11PM UTC 139
86.46
GitHub Action Run
Source Files on build 26857056894
  • Tree
  • List 139
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #286
  • PR Base - main (#22317656258)
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