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

RDFLib / rdflib / 10154699676 / 8
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 2s
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: 90.259% (-0.01%) from 90.271%
10154699676.8

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>

6052 of 7633 branches covered (79.29%)

19274 of 21354 relevant lines covered (90.26%)

0.9 hits per line

Source Files on job ubuntu-latest-3.8-min - 10154699676.8
  • Tree
  • List 119
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
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.2)
  • 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