| 1 | package Reaction::UI::Controller::Role::Action::List; | ||||||||||||||||||||
| 2 | |||||||||||||||||||||
| 3 | 4 | ▶ | use Moose::Role -traits => 'MethodAttributes'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | 4 | ▶ | use Reaction::UI::ViewPort::Collection; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 5 | |||||||||||||||||||||
| 6 | 4 | requires qw/get_collection setup_viewport/; | |||||||||||||||||||
| 7 | |||||||||||||||||||||
| 8 | 0 | ▶ | sub list :Action :Args(0) { | ||||||||||||||||||
|
Subroutine
list: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||||||||||||
| 9 | 0 | my ($self, $c) = @_; | |||||||||||||||||||
| 10 | 0 | ▶ | my $collection = $c->stash->{collection} || $self->get_collection($c); | ||||||||||||||||||
|
Condition0%0/3
$c->stash->{'collection'} || $self->get_collection($c)
MC/DC0%0/2
$c->stash->{'collection'} || $self->get_collection($c)
$c->stash->{'collection'}
$self->get_collection($c)
Truth table0%0/3
A || B
A= $c->stash->{'collection'}B= $self->get_collection($c)
| |||||||||||||||||||||
| 11 | 0 | $self->setup_viewport($c, { collection => $collection }); | |||||||||||||||||||
| 12 | 4 | ▶ | } | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 13 | |||||||||||||||||||||
| 14 | 3 | ▶ | around _build_action_viewport_map => sub { | ||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 15 | 3 | my $orig = shift; | |||||||||||||||||||
| 16 | 3 | my $map = shift->$orig( @_ ); | |||||||||||||||||||
| 17 | 3 | $map->{list} = 'Reaction::UI::ViewPort::Collection'; | |||||||||||||||||||
| 18 | 3 | return $map; | |||||||||||||||||||
| 19 | 4 | }; | |||||||||||||||||||
| 20 | |||||||||||||||||||||
| 21 | 4 | 1; | |||||||||||||||||||
| 22 | |||||||||||||||||||||
| 23 | __END__; | ||||||||||||||||||||