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

RDFLib / rdflib / 10154699676 / 6
90%
master: 91%

Build:
Build:
LAST BUILD BRANCH: dependabot/pip/pyparsing-3.3.1
DEFAULT BRANCH: master
Ran 30 Jul 2024 01:50AM UTC
Files 119
Run time 3s
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 2024 01:44AM UTC coverage: 87.935% (-0.01%) from 87.946%
10154699676.6

push

github

web-flow
Prevent Collection from adding 'rdf:nil rdf:rest rdf:nil.' triples (#2818)

* fix: Prevent Collection from add 'rdf:nil rdf:rest rdf:nil.' triples

Creating 'Collection(graph, RDF.nil)' used to add a 'rdf:nil rdf:rest rdf:nil.'
triple to the graph, which turned the empty list into an infinite list.

This was a side-effect of unconditionally appending 'seq' to the collection,
which is not possible when the collection is 'nil' without ill side-effects.

This commit makes the append conditional; and also checks the collection
is non-empty in case the user explicitly tries to add item to the empty list.

* Move emptiness check out of _end()

This will allow using _end() in other methods that would not need to append

* Also prevent insertion at the end of finalized lists

Co-authored-by: Ashley Sommer <ashleysommer@gmail.com>

* Also prevent .append() on finalized lists

Co-authored-by: Ashley Sommer <ashleysommer@gmail.com>

---------

Co-authored-by: Nicholas Car <nick@kurrawong.net>
Co-authored-by: Ashley Sommer <ashleysommer@gmail.com>

5874 of 7626 branches covered (77.03%)

18811 of 21392 relevant lines covered (87.93%)

0.88 hits per line

Source Files on job ubuntu-latest-3.10 - 10154699676.6
  • Tree
  • List 119
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 10154699676
  • cb2c8d1e on github
  • Prev Job for on main (#10140259314.13)
  • Next Job for on main (#10170593328.13)
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

© 2025 Coveralls, Inc