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

johnyf / astutils / 16 / 3
91%
master: 91%

Build:
Build:
LAST BUILD BRANCH: v0.0.4
DEFAULT BRANCH: master
Ran 02 Apr 2018 06:33AM UTC
Files 4
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

30 Mar 2018 04:07AM UTC coverage: 91.071% (+3.1%) from 87.931%
16.3

push

travis-ci

johnyf
API: rm arg `depth` from `ast.Operator.__str__`

Passing this argument to operands raises errors with
AST nodes that are instances of classes not designed
for parsing, for example `list`. Such a limitation is
inconvenient and unnecessary.

In 3 years, I have never used the argument `depth`.
Given the rarity of this operation, how frequently
it raises errors, and the complexity it can induce,
instead use a depth-first search function to trim the
AST prior to calling `__str__`.

102 of 112 relevant lines covered (91.07%)

0.91 hits per line

Source Files on job 16.3
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1
  • Travis Job 16.3
  • afe66213 on github
  • Prev Job for on dev (#15.1)
  • Next Job for on dev (#17.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