lib/Reaction/InterfaceModel/Action/Search/UpdateSpec.pm

filter: Statementstmt 76.9% 20 / 26 Branchbran n/a Conditioncond 0.0% 0 / 6 MC/DCmcdc 0.0% 0 / 4 Subroutinesub 75.0% 6 / 8 Podpod n/a totaltotal 59.0% 26 / 44 CC 3 SCAR 10.0
CC
3
Cov
62%
__ANON__
5.1
_reflection_info
5.1
BEGIN
1.5
CRAP 2.7
« lib/Reaction/UI/FocusStack.pm ↑ Summary lib/Reaction/UI/ViewPort/Action/Role/OK.pm »
1 package Reaction::InterfaceModel::Action::Search::UpdateSpec;
2  
3 4 ▶use Reaction::Class;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 #use aliased 'BrokerInterface::SearchSpec';
5 4 ▶use Method::Signatures::Simple;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 4 ▶use Reaction::InterfaceModel::Reflector::SearchSpec;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 4 ▶use Carp qw( confess );
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 4 ▶use namespace::clean -except => 'meta';
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 3 extends 'Reaction::InterfaceModel::Action';
12  
13 0 ▶method _reflection_info () {
Subroutine BEGIN: called CC=1 SCAR=4.1
Subroutine _reflection_info: not called CC=2 SCAR=16.4
Subroutine __ANON__: not called CC=2 SCAR=16.4
14 0 ▶ confess sprintf "Class %s did not override the _reflection_info method",
Condition0%0/6
ref $self || $self
l!l&&r!l&&!r
000
ref $self || $self
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $self || $self
ref $self $self
MC/DC0%0/2
ref $self || $self
ref $self $self
Truth table0%0/3
A || B
A= ref $selfB= $self
ABresult
1X1
011
000
Truth table0%0/3
A || B
A= ref $selfB= $self
ABresult
1X1
011
000
15 ref($self) || $self;
16 3 }
17  
18 3 with 'Reaction::InterfaceModel::Search::UpdateSpec';
19  
20 3 1;
21  
22 =head1 NAME
23  
24 Reaction::InterfaceModel::Action::Search::UpdateSpec - Update search specification
25  
26 =head1 SYNOPSIS
27  
28 package MyApp::InterfaceModel::UpdateSearchSpec;
29 use Reaction::Class;
30 use Reaction::InterfaceModel::Reflector::SearchSpec;
31  
32 use aliased 'MyApp::InterfaceModel::SearchSpec';
33  
34 use namespace::autoclean;
35  
36 extends 'Reaction::InterfaceModel::Action::Search::UpdateSpec';
37  
38 # this will reflect the search spec as update spec in the current
39 # class.
40 my $info = reflect_attributes_from_target SearchSpec;
41  
42 sub _reflection_info { $info }
43  
44 1;
45  
46 =cut
« lib/Reaction/UI/FocusStack.pm ↑ Summary lib/Reaction/UI/ViewPort/Action/Role/OK.pm »