File Coverage

blib/lib/Dancer/Plugin/WebDAV.pm
Criterion Covered Total %
statement 16 16 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod n/a
total 22 22 100.0


line stmt bran cond sub pod time code
1             package Dancer::Plugin::WebDAV;
2 2     2   246364 use strict;
  2         4  
  2         64  
3 2     2   11 use warnings;
  2         2  
  2         82  
4             our $VERSION = '0.0.5';
5              
6 2     2   1156 use Dancer ':syntax';
  2         357933  
  2         12  
7 2     2   810 use Dancer::Exception ':all';
  2         4  
  2         263  
8 2     2   1835 use Dancer::Plugin;
  2         2797  
  2         359  
9              
10             our @METHODS = qw(
11             propfind
12             proppatch
13             mkcol
14             copy
15             move
16             lock
17             unlock
18             );
19              
20             for my $method (@METHODS) {
21             register $method => sub {
22 7     7   1263 Dancer::App->current->registry->universal_add($method, @_);
23             };
24             }
25              
26             register_plugin;
27              
28             1;
29             __END__