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

markwellis / plack-middleware-debug-catalyststash / 11 / 5
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 21 Dec 2016 09:24AM UTC
Files 1
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

21 Dec 2016 09:21AM UTC coverage: 100.0%. Remained the same
11.5

Pull #3

travis-ci

web-flow
move handler into middleware and save in a lexical

There was a change somewhere (probably in Catalyst) at some point that made $env in $c->req->env not be the same as the $env we have in the handler. I believe it gets copied or weakened somewhere, but I could not find it. If $c->req->env or $c->engine->env (which is just for back compatibility and there are comments saying it will go away) are used inside of process in a Catalyst::View:: class, the old approach using $env in the debug pannel works. But we cannot do that here, because it needs to be generic so it works with any View class, and Catalyst::View::process gets overwritten by subclasses, so we cannot add a modifier to it as it's never called.

This solution of adding the handler with a closure over a local variable inside of the actual middleware function is less performant as it gets called every time and not just when the class is loaded. But since we're in a development environment when this gets used that shouldn't be a big problem.

Fixes #1
Pull Request #3: move handler into middleware and save in a lexical

20 of 20 relevant lines covered (100.0%)

1.4 hits per line

Source Files on job 11.5
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 11
  • Travis Job 11.5
  • 7b094879 on github
  • Prev Job for on master (#8.5)
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