CloudTasks.pm

filter: Statementstmt 76.1% 16 / 21 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 83.3% 5 / 6 Podpod 100% 1 / 1 totaltotal 62.8% 22 / 35 CC 3 SCAR 16.3
CC
3
Cov
62%
client
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 5.1
« CloudTasks/Client.pm ↑ Summary
1 package Google::CloudTasks;
2 4 ▶use 5.008001;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 4 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 4 ▶use Google::CloudTasks::Client;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 4 our $VERSION = "0.01";
10  
11 0 ▶sub client {
Subroutine client: not called CC=3 SCAR=24.8
Pod documented
12 0 my ($class, @args) = @_;
13  
14 0 my %args = @args;
15 0 ▶ if ($args{version} and $args{version} ne 'v2') {
Branch: 1 branch
BranchTrueFalseTotal
if ($args{"version"} and $args{"version"} ne "v2") 0 0 0
Condition0%0/3
$args{"version"} and $args{"version"} ne "v2"
!ll&&!rl&&r
000
MC/DC0%0/2
$args{"version"} and $args{"version"} ne "v2"
$args{"version"} $args{"version"} ne "v2"
Truth table0%0/3
A and B
A= $args{"version"}B= $args{"version"} ne "v2"
ABresult
0X0
100
111
16 0 die "Currently only version 'v2' of CloudTasks is suppoted.";
17 }
18 0 return Google::CloudTasks::Client->new(@args);
19 }
20  
21 4 1;
22  
23 __END__
« CloudTasks/Client.pm ↑ Summary