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

johnyf / astutils / 16
91%
master: 91%

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

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__`.

406 of 448 relevant lines covered (90.63%)

0.91 hits per line

Jobs
ID Job ID Ran Files Coverage
1 16.1 02 Apr 2018 06:33AM UTC 0
89.29
Travis Job 16.1
2 16.2 02 Apr 2018 06:33AM UTC 0
91.07
Travis Job 16.2
3 16.3 02 Apr 2018 06:33AM UTC 0
91.07
Travis Job 16.3
4 16.4 02 Apr 2018 06:33AM UTC 0
91.07
Travis Job 16.4
Source Files on build 16
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #16
  • afe66213 on github
  • Prev Build on dev (#15)
  • Next Build on dev (#17)
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