lib/Dancer/Plugin/Syntax/GetPost.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 26 / 26 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
↑ Summary
1 2 ▶use 5.008001;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 package Dancer::Plugin::Syntax::GetPost;
6 # ABSTRACT: Syntactic sugar for GET+POST handlers
7 2 our $VERSION = '0.001'; # VERSION
8  
9 2 ▶use Dancer::Plugin;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 2 ▶use Dancer ':syntax';
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 1 ▶register get_post => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
13 1 my ( $self, @args ) = plugin_args(@_);
14 1 any [qw/get post/] => @args;
15 2 };
16  
17 2 register_plugin for_versions => [ 1, 2 ];
18  
19 2 1;
20  
21  
22 # vim: ts=2 sts=2 sw=2 et:
23  
24 __END__
↑ Summary