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

desarrolla2 / Cache / 180 / 2
87%
master: 87%

Build:
DEFAULT BRANCH: master
Ran 01 Apr 2017 07:03AM UTC
Files 15
Run time 0s
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

01 Apr 2017 06:59AM UTC coverage: 87.216%. Remained the same
180.2

Pull #39

travis-ci

web-flow
Remove duplicate invocation of getKey() in File::getValueFromCache()

Calling `getKey()` before passing the key to `getFileName()` from `getValueFromCache()` is not only unnecessary, it actually breaks caching if the prefix is not empty.
I discovered this from a slightly different perspective: in my application I had to inherit from `Adapter/File` and override `getKey()` so that it applies `sha1()` to it as I frequently get cache keys with colons and other garbage in them. So as with a non-empty prefix, the key gets mutated in this instance, and then gets mutated yet again by the second `getKey()` call, so the lookup key is actually completely different.
Pull Request #39: Remove duplicate invocation of getKey() in File::getValueFromCache()

307 of 352 relevant lines covered (87.22%)

20.44 hits per line

Source Files on job 180.2
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 180
  • Travis Job 180.2
  • 4caa44b1 on github
  • Prev Job for on master (#172.2)
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