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

markwellis / plack-middleware-debug-catalyststash / 11
100%

Build:
DEFAULT BRANCH: master
Ran 21 Dec 2016 09:23AM UTC
Jobs 5
Files 1
Run time 18s
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
11

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

7.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 11.1 21 Dec 2016 09:23AM UTC 0
100.0
Travis Job 11.1
2 11.2 21 Dec 2016 09:24AM UTC 0
100.0
Travis Job 11.2
3 11.3 21 Dec 2016 09:24AM UTC 0
100.0
Travis Job 11.3
4 11.4 21 Dec 2016 09:24AM UTC 0
100.0
Travis Job 11.4
5 11.5 21 Dec 2016 09:24AM UTC 0
100.0
Travis Job 11.5
Source Files on build 11
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #11
  • Pull Request #3
  • PR Base - master (#8)
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