Devel/IPerl/Display/CSS.pm

filter: Statementstmt 95.2% 20 / 21 Branchbran 75.0% 3 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 87.1% 27 / 31 CC 3 SCAR 6.9
CC
3
Cov
92%
iperl_data_representations
3.0
_build_mimetype
2.0
BEGIN
1.0
CRAP 2.0
« Devel/IPerl/ReadLine/String.pm ↑ Summary Devel/IPerl/Display/JS.pm »
1 package Devel::IPerl::Display::CSS;
2 2 $Devel::IPerl::Display::CSS::VERSION = '0.012';
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 2 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 with qw(Devel::IPerl::Display::Role::Displayable Devel::IPerl::Display::Role::Source);
8  
9 0 ▶sub _build_mimetype { 'text/css' }
Subroutine _build_mimetype: not called CC=1 SCAR=6.9
10 2 ▶sub iperl_data_representations {
Subroutine iperl_data_representations: called CC=3 SCAR=11.0
Pod undocumented
11 2 my ($self) = @_;
12 2 my $html;
13 2 ▶ if( $self->uri ) {
Branch: 2 branches
BranchTrueFalseTotal
if ($self->uri) { } 1 1 2
elsif ($self->bytestream) { } 1 0 1
14 1 $html = <<"HTML";
15 1 <link rel="stylesheet" href="@{[$self->uri]}" type="text/css">
16 HTML
17 } elsif( $self->bytestream ) {
18 1 $html = <<"HTML";
19 <stylesheet type="text/css">
20 1 @{[ $self->bytestream ]}
21 </stylesheet>
22 HTML
23 }
24 return {
25 2 "text/html" => $html,
26 };
27 }
28  
29 2 1;
30  
31 __END__
« Devel/IPerl/ReadLine/String.pm ↑ Summary Devel/IPerl/Display/JS.pm »