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

stedolan / jq / 490
84%

Build:
DEFAULT BRANCH: master
Ran 11 Dec 2018 04:03AM UTC
Jobs 1
Files 252
Run time 17s
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
490

push

travis-ci

nicowilliams
Allow variable refs as object keys {$key:value}

Users are often surprised by the requirement to parenthesize any
non-trivial object key expressions in object constructors.  E.g.,
{"a"+"b":1}.  This commit adds one more kind of key expression besides
literals and idents: variable references.

A common use case for this is jq programs as JSON templates to fill in
with variables computed from inputs or passed in on the command-line.
E.g., {some_key:$value}.  Now users can also use, e.g., {$key:$value}.

This and the restrictions on key and value expressions in object
constructors are now clarified a bit in the documentation.

5154 of 6105 relevant lines covered (84.42%)

6945805.37 hits per line

Jobs
ID Job ID Ran Files Coverage
3 490.3 (COVERAGE="--disable-valgrind --enable-gcov") 11 Dec 2018 04:03AM UTC 0
84.42
Travis Job 490.3
Source Files on build 490
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #490
  • 8ea4a558 on github
  • Prev Build on master (#486)
  • Next Build on master (#492)
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

© 2025 Coveralls, Inc