lib/Reaction/UI/Widget/Collection/Grid.pm

filter: Statementstmt 66.6% 12 / 18 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 40.0% 2 / 5 Podpod n/a totaltotal 56.0% 14 / 25 CC 2 SCAR 11.0
CC
2
Cov
60%
__ANON__
6.0
__ANON__
2.0
__ANON__
2.0
CRAP 3.0
« lib/Reaction/UI/ViewPort/Field/String/Fragment.pm ↑ Summary lib/Reaction/UI/ViewPort/Field/Collection.pm »
1 package Reaction::UI::Widget::Collection::Grid;
2  
3 1 ▶use Reaction::UI::WidgetClass;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 ▶use namespace::clean -except => [ qw(meta) ];
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 extends 'Reaction::UI::Widget::Collection';
7  
8 0 ▶implements fragment header_cells {
Subroutine __ANON__: not called CC=2 SCAR=17.9
9 0 arg 'labels' => $_{viewport}->field_labels;
10 0 render header_cell => over $_{viewport}->computed_field_order;
11 0 ▶ if ($_{viewport}->member_action_count) {
Branch: 1 branch
BranchTrueFalseTotal
if ($_{"viewport"}->member_action_count) 0 0 0
12 0 render 'header_action_cell';
13 }
14 1 };
15  
16 0 ▶implements fragment header_cell {
Subroutine __ANON__: not called CC=1 SCAR=6.9
17 0 arg label => localized $_{labels}->{$_};
18 1 };
19  
20 0 ▶implements fragment header_action_cell {
Subroutine __ANON__: not called CC=1 SCAR=6.9
21 0 arg col_count => $_{viewport}->member_action_count;
22 1 };
23  
24 1 __PACKAGE__->meta->make_immutable;
25  
26 1 1;
27  
28 __END__;
« lib/Reaction/UI/ViewPort/Field/String/Fragment.pm ↑ Summary lib/Reaction/UI/ViewPort/Field/Collection.pm »