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

Galbar / JsonPath-PHP / #16
99%

Build:
DEFAULT BRANCH: master
Ran 03 Mar 2023 01:45PM UTC
Jobs 1
Files 18
Run time 1s
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

Galbar
Review issue 37: Added test cases with expected results

I reviewed the list of cases listed in the issue. Some of them were
indeed bugs, some others I considered that the current behaviour is the
expected one.

Specifically:
- empty results are considered "no match" and thus return `false`
- Fixed a bug that allowed dot-notation to accept variable names
  starting with numbers. This implementation only accepts valid
  JavaScript variable names with the dot-notation. Use the bracket
  notation otherwise.
- Fixed the case when querying for `$[?(@.key<42)]` in `{"some":
  "value"}` would return ["value"]. This happened because `@.key` would
  return false and PHP would compare `false < 42`. The fix makes sure
  that a comparisson between a boolean and a non-boolean always returns
  false.

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

394 of 397 relevant lines covered (99.24%)

41.93 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
94.74
-5.26% src/Galbar/JsonPath/Expression/Comparison.php
Jobs
ID Job ID Ran Files Coverage
1 #16.1 03 Mar 2023 01:45PM UTC 18
99.24
Source Files on build #16
  • Tree
  • List 18
  • Changed 13
  • Source Changed 2
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • b0c41b11 on github
  • Prev Build on master
  • Next Build on master
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