Branch Coverage

blib/lib/WebService/Pixela/Graph.pm
Criterion Covered Total %
branch 40 52 76.9


line true false branch
24 15 32 if (@_)
37 1 7 unless $params->{'id'}
43 1 4 unless $args{'type'}
45 3 5 if ($args{'type'} =~ /^$_$/i)
50 1 3 unless $params->{'type'}
53 1 2 unless $args{'color'}
55 1 1 unless $params->{'color'}
58 0 1 if $args{'timezone'}
69 1 1 $self->client->decode ? :
76 1 3 unless $id
79 2 1 if $args{'date'}
80 2 1 if $args{'mode'}
92 1 1 unless $id
95 2 1 if $arg{$_}
98 1 0 if ($arg{'color'})
100 0 1 unless $params->{'color'}
103 1 0 if ($arg{'purge_cache_urls'})
104 0 1 if (ref $arg{'purge_cache_urls'} ne 'ARRAY')
110 1 0 if defined $arg{'self_sufficient'}
120 0 0 unless $id
131 0 1 unless $id
140 0 2 unless $id
143 2 0 if $args{'to'}
144 2 0 if $args{'from'}
149 1 1 $self->client->decode ? :
155 2 10 if ($check_color =~ /^$_$/i)