SOS/Exception.pm

filter: Statementstmt 72.7% 8 / 11 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 1 / 2 Podpod n/a totaltotal 60.0% 9 / 15 CC 2 SCAR 14.7
CC
2
Cov
62%
_build_exception
6.0
BEGIN
1.0
CRAP 4.3
« SOS/Observations.pm ↑ Summary SOS/Capabilities/Offering.pm »
1 package WebService::SOS::Exception;
2 1 ▶use XML::Rabbit::Root 0.1.0;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 1 has 'exception' => (
5 is => 'ro',
6 isa => 'Bool',
7 lazy_build => 1,
8 );
9  
10 0 ▶sub _build_exception {
Subroutine _build_exception: not called CC=2 SCAR=17.9
11 0 my ($self) = @_;
12 0 ▶ return if $self->exceptionCode eq '';
Branch: 1 branch
BranchTrueFalseTotal
if $self->exceptionCode eq "" 0 0 0
13 0 return 1;
14 }
15  
16 1 has_xpath_value 'exceptionCode' => '/ows:ExceptionReport/ows:Exception/@exceptionCode';
17 1 has_xpath_value 'locator' => '/ows:ExceptionReport/ows:Exception/@locator';
18 1 has_xpath_value 'exceptionText' => '/ows:ExceptionReport/ows:Exception/ows:ExceptionText';
19  
20 1 finalize_class();
« SOS/Observations.pm ↑ Summary SOS/Capabilities/Offering.pm »