lib/OpusVL/AppKit/View/DownloadFile.pm

filter: Statementstmt 53.3% 8 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 100% 1 / 1 totaltotal 60.0% 12 / 20 CC 1 SCAR 2.2
CC
1
Cov
53%
process
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« lib/OpusVL/AppKit/Controller/Search.pm ↑ Summary blib/lib/OpusVL/AppKit.pm »
1 package OpusVL::AppKit::View::DownloadFile;
2  
3 8 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 8 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 8 ▶BEGIN { extends 'Catalyst::View::Download'; }
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 sub process
10 0 ▶{
Subroutine process: not called CC=1 SCAR=6.9
Pod documented
11 0 my $self = shift;
12 0 my $c = shift;
13 0 my $args = shift;
14  
15 0 $c->res->content_type( $args->{content_type} );
16 0 $c->res->header( 'Content-Disposition' => 'filename='.$args->{header}.';' );
17 0 $c->res->body( $args->{body} );
18 0 $c->detach;
19 }
20  
21 ##
22 8 1;
23  
24 __END__
« lib/OpusVL/AppKit/Controller/Search.pm ↑ Summary blib/lib/OpusVL/AppKit.pm »