lib/Reaction/UI/Widget/SiteLayout.pm

filter: Statementstmt 93.7% 30 / 32 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 87.5% 7 / 8 Podpod n/a totaltotal 90.4% 38 / 42 CC 2 SCAR 2.9
CC
2
Cov
91%
__ANON__
2.0
__ANON__
2.0
BEGIN
1.0
CRAP 1.3
« lib/Reaction/UI/Widget/Field/Mutable/File.pm ↑ Summary lib/Reaction/Test/WithDB.pm »
1 package Reaction::UI::Widget::SiteLayout;
2  
3 3 ▶use Reaction::UI::WidgetClass;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use aliased 'Reaction::UI::Widget::Container';
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use MooseX::Types::Moose 'HashRef';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 3 ▶use namespace::clean -except => [ qw(meta) ];
Subroutine BEGIN: called CC=1 SCAR=0.0
8 3 extends Container;
9  
10 4 ▶after fragment widget {
Subroutine __ANON__: called CC=1 SCAR=0.0
11 4 arg static_base => $_{viewport}->static_base_uri;
12 4 arg title => $_{viewport}->title;
13 3 };
14  
15 4 ▶implements fragment meta_info {
Subroutine __ANON__: called CC=2 SCAR=7.0
16 4 my $self = shift;
17 4 ▶ if ( $_{viewport}->meta_info->{'http_header'} ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($_{"viewport"}->meta_info->{"http_header"}) 4 0 4
18 4 my $http_header = delete $_{viewport}->meta_info->{'http_header'};
19 4 arg 'http_header' => $http_header;
20 4 render 'meta_http_header' => over [keys %$http_header];
21 }
22 4 render 'meta_member' => over [keys %{$_{viewport}->meta_info}];
23 3 };
24  
25 4 ▶implements fragment meta_http_header {
Subroutine __ANON__: called CC=1 SCAR=0.0
26 4 arg 'meta_name' => $_;
27 4 arg 'meta_value' => $_{'http_header'}->{$_};
28 3 };
29  
30 0 ▶implements fragment meta_member {
Subroutine __ANON__: not called CC=1 SCAR=6.9
31 0 arg 'meta_name' => $_;
32 0 arg 'meta_value' => $_{viewport}->meta_info->{$_};
33 3 };
34  
35 3 __PACKAGE__->meta->make_immutable;
36  
37 3 1;
38  
39 __END__
« lib/Reaction/UI/Widget/Field/Mutable/File.pm ↑ Summary lib/Reaction/Test/WithDB.pm »