Client/Component.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 3 totaltotal 0.0% 0 / 26 CC 1 SCAR 6.9
CC
1
Cov
0%
create
2.0
update
2.0
delete
2.0
CRAP 2.0
1 #!/bin/false
2 # PODNAME: BZ::Client::Component
3 # ABSTRACT: Client side representation of Product Components in Bugzilla
4  
5 use strict;
6 use warnings 'all';
7  
8 package BZ::Client::Component;
9 $BZ::Client::Component::VERSION = '4.91';
10  
11 use parent qw( BZ::Client::API );
12  
13 # See https://www.bugzilla.org/docs/tip/en/html/api/Bugzilla/WebService/Component.html
14 # These are in order as per the above
15  
16 ## functions
17  
18 sub create {
19 my($class, $client, $params) = @_;
20 return $class->_create($client, 'Component.create', $params);
21 }
22  
23 sub update {
24 my($class, $client, $params) = @_;
25 return $class->_returns_array($client, 'Component.update', $params, 'components');
26 }
27  
28 sub delete {
29 my($class, $client, $params) = @_;
30 return $class->_returns_array($client, 'Component.delete', $params, 'components');
31 }
32  
33 1;
34  
35 __END__