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

niklasf / python-chess / 983
92%

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

pending completion
983

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.

6408 of 7117 relevant lines covered (90.04%)

7.05 hits per line

Jobs
ID Job ID Ran Files Coverage
1 983.1 18 Nov 2017 02:19PM UTC 0
89.93
Travis Job 983.1
2 983.2 18 Nov 2017 02:21PM UTC 0
89.31
Travis Job 983.2
3 983.3 18 Nov 2017 02:18PM UTC 0
89.77
Travis Job 983.3
4 983.4 18 Nov 2017 02:19PM UTC 0
89.77
Travis Job 983.4
5 983.5 18 Nov 2017 02:20PM UTC 0
89.79
Travis Job 983.5
6 983.6 18 Nov 2017 02:26PM UTC 0
89.78
Travis Job 983.6
7 983.7 18 Nov 2017 02:25PM UTC 0
78.19
Travis Job 983.7
8 983.8 18 Nov 2017 02:24PM UTC 0
88.08
Travis Job 983.8
Source Files on build 983
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #983
  • ad36dc84 on github
  • Prev Build on master (#982)
  • Next Build on master (#990)
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