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

stedolan / jq / 704
84%

Build:
DEFAULT BRANCH: master
Ran 27 Mar 2019 12:31AM UTC
Jobs 1
Files 252
Run time 14s
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
704

push

travis-ci

nicowilliams
Fix assert in generator subexpressions (fix #1875)

Expressions of the form `path(EXPR) | select(GENERATOR)`, where `EXPR`
is a path expression and `GENERATOR` is a generator conditional
expression (e.g., `has("a"), has("b")`) cause an assertion if the
jq_state VM is torn down too soon.  That assert() was only correct if
assuming that the conditional is not a generator.

If the conditional is generator, then what we see is that when
backtracking a SUBEXP_END is executed without a corresponding
SUBEXP_BEGIN because the entire conditional is bracketed with
SUBEXP_BEGIN and SUBEXP_END, and since it's resumed in the middle, in
between the brackets.

Rather than assert that the jq->path_len being restored has some
particular value, we can simply re-compute it from the restored
jq->path.

1 of 1 new or added line in 1 file covered. (100.0%)

5192 of 6127 relevant lines covered (84.74%)

206198.22 hits per line

Jobs
ID Job ID Ran Files Coverage
3 704.3 (COVERAGE="--disable-valgrind --enable-gcov") 27 Mar 2019 12:31AM UTC 0
84.74
Travis Job 704.3
Source Files on build 704
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #704
  • b52fc104 on github
  • Prev Build on master (#701)
  • Next Build on master (#716)
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