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

niklasf / python-chess / 983 / 8
92%
master: 92%

Build:
DEFAULT BRANCH: master
Ran 18 Nov 2017 02:24PM UTC
Files 10
Run time 0s
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

18 Nov 2017 02:11PM UTC coverage: 88.085% (-1.7%) from 89.784%
983.8

push

travis-ci

niklasf
Rename LegalMoveGenerator.__len__() to count() (fixes #226)

__len__ is used by list() to pre-allocate memory for the list.
Implementing __len__ basically claims that there is a more efficient
implementation than just iterating over all elements. This was indeed
the case in old python-chess versions, but even then it was less
efficient than just doing more allocations.

Thanks to Martin C. Doege for reporting this issue.

Implementing __length_hint__ with constant values between 32 and 64
does not seem to offer any speedup for list conversion.

6269 of 7117 relevant lines covered (88.08%)

0.88 hits per line

Source Files on job 983.8
  • Tree
  • List 0
  • Changed 6
  • Source Changed 1
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 983
  • Travis Job 983.8
  • ad36dc84 on github
  • Prev Job for on master (#982.6)
  • Next Job for on master (#990.8)
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