Branch Coverage

blib/lib/WebService/Pixela/Graph.pm
Criterion Covered Total %
branch 43 56 76.7


line true false branch
24 16 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 3 unless $id
135 1 2 if ($args{'line'})
146 0 2 unless $id
149 2 0 if $args{'to'}
150 2 0 if $args{'from'}
155 1 1 $self->client->decode ? :
164 0 1 unless $id
173 2 10 if ($check_color =~ /^$_$/i)