blib/lib/WebService/Bugzilla/Classification.pm

filter: Statementstmt 71.4% 15 / 21 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 75.0% 3 / 4 Podpod 100% 1 / 1 totaltotal 57.5% 19 / 33 CC 3 SCAR 18.7
CC
3
Cov
58%
get
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 6.5
« blib/lib/WebService/Bugzilla/Role/Updatable.pm ↑ Summary blib/lib/WebService/Bugzilla/Exception.pm »
1 #!/usr/bin/false
2 # ABSTRACT: Bugzilla Classification object and service
3 # PODNAME: WebService::Bugzilla::Classification
4  
5 package WebService::Bugzilla::Classification 0.001;
6 1 ▶use strictures 2;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 extends 'WebService::Bugzilla::Object';
11  
12 1 has description => (is => 'ro');
13 1 has name => (is => 'ro');
14 1 has products => (is => 'ro');
15 1 has sort_key => (is => 'ro');
16  
17 0 ▶sub get {
Subroutine get: not called CC=3 SCAR=24.8
Pod documented
18 0 my ($self, $id_or_name) = @_;
19 0 my $res = $self->client->get($self->_mkuri("classification/$id_or_name"));
20 0 ▶ return unless $res->{classifications} && @{ $res->{classifications} };
Branch: 1 branch
BranchTrueFalseTotal
unless $res->{"classifications"} and @{$res->{"classifications"};} 0 0 0
Condition0%0/3
$res->{"classifications"} and @{$res->{"classifications"};}
!ll&&!rl&&r
000
MC/DC0%0/2
$res->{"classifications"} and @{$res->{"classifications"};}
$res->{"classifications"} @{$res->{"classifications"};}
Truth table0%0/3
A and B
A= $res->{"classifications"}B= @{$res->{"classifications"};}
ABresult
0X0
100
111
21 return $self->new(
22 client => $self->client,
23 0 %{ $res->{classifications}[0] }
24 );
25 }
26  
27 1 1;
28  
29 __END__
« blib/lib/WebService/Bugzilla/Role/Updatable.pm ↑ Summary blib/lib/WebService/Bugzilla/Exception.pm »