« 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
Condition0%0/3
$res->{"classifications"} and @{$res->{"classifications"};}
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"};}
| |||||||||||||||||||||||||||||
| 21 | return $self->new( | ||||||||||||||||||||||||||||
| 22 | client => $self->client, | ||||||||||||||||||||||||||||
| 23 | 0 | %{ $res->{classifications}[0] } | |||||||||||||||||||||||||||
| 24 | ); | ||||||||||||||||||||||||||||
| 25 | } | ||||||||||||||||||||||||||||
| 26 | |||||||||||||||||||||||||||||
| 27 | 1 | 1; | |||||||||||||||||||||||||||
| 28 | |||||||||||||||||||||||||||||
| 29 | __END__ | ||||||||||||||||||||||||||||