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

desarrolla2 / Cache / 180
87%

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

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()

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

307 of 352 relevant lines covered (87.22%)

40.89 hits per line

Jobs
ID Job ID Ran Files Coverage
1 180.1 01 Apr 2017 07:02AM UTC 0
87.22
Travis Job 180.1
2 180.2 01 Apr 2017 07:02AM UTC 0
87.22
Travis Job 180.2
Source Files on build 180
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #180
  • Pull Request #39
  • PR Base - master (#172)
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