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

tortoise / tortoise-orm / 26717344693 / 1
84%
master: 94%

Build:
Build:
LAST BUILD BRANCH: update-contributing
DEFAULT BRANCH: master
Ran 31 May 2026 04:03PM UTC
Files 134
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

31 May 2026 03:57PM UTC coverage: 84.44%. Remained the same
26717344693.1

push

github

web-flow
fix: clamp count() at 0 when offset exceeds total (#2208)

* fix: clamp count() to limit/offset semantics at the edges

COUNT(*) ignores LIMIT/OFFSET, so CountQuery applies them in Python. Two edge
cases didn't match the limited query result:
- offset greater than the total returned a negative number (e.g.
  .offset(100).count() == -95 for 5 rows) instead of 0.
- limit(0) returned the full total instead of 0, because the limit clamp used
  a truthiness check (`if self._limit`) that skips 0.

Clamp the offset subtraction at 0 and use `self._limit is not None` so an
explicit limit(0) is honored.

* docs: reference count fix PR in changelog

* test: format count edge assertions

3185 of 4232 branches covered (75.26%)

Branch coverage included in aggregate %.

11576 of 13249 relevant lines covered (87.37%)

0.87 hits per line

Source Files on job 26717344693.1
  • Tree
  • List 134
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 26717344693
  • 403a4dce on github
  • Prev Job for on develop (#26170370695.1)
  • Next Job for on develop (#27051251561.1)
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