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

dtolnay / jq / 93 / 3
85%
master: 85%

Build:
Build:
LAST BUILD BRANCH: withoutonig
DEFAULT BRANCH: master
Ran 19 Jul 2015 05:15AM UTC
Files 38
Run time 2s
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

19 Jul 2015 05:11AM UTC coverage: 84.932%. First build
COVERAGE="--disable-valgrind --enable-gcov"

push

travis-ci

dtolnay
Resolve shift/reduce conflict of 'def' vs '|'

This was an important conflict. In the following expression:

    def a: 0; . | a

Bison needs to decide between these two equally valid
parses:

    (def a: 0; .) | a
    def a: 0; (. | a)

For jq we want the second one, because the first results in
"a/0 is not defined". In the current parser the first parse
is a reduce and the second parse is a shift. Since Bison
prefers to shift in shift/reduce conflicts, we accidentally
got the correct behavior.

This commit adds a precedence level FUNCDEF which is lower
precedence than '|', meaning we explicitly choose the
correct parse.

Of course many unit tests already cover this case, but I
added one specifically for it.

4746 of 5588 relevant lines covered (84.93%)

363502.54 hits per line

Source Files on job 93.3 (COVERAGE="--disable-valgrind --enable-gcov")
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 93
  • Travis Job 93.3
  • 5410c9ee on github
  • Next Job for COVERAGE="--disable-valgrind --enable-gcov" on srconflict (#94.3)
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