Branch Coverage

blib/lib/WebService/HabitRPG.pm
Criterion Covered Total %
branch 1 124 0.8


line true false branch
39 3 0 unless ($self->agent)
52 0 0 if @_ > 0
55 0 0 @_ > 0 ? :
0 0 unless do { BEGIN {${^WARNING_BITS} = "\x54\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x15\x55\x55\x55\x15"} grep {$_ ~~ qr/^(?: habit | daily | todo | reward | )$/x;} $type }
0 0 if @_ > 1
56 0 0 if ($type)
63 0 0 unless @_ > 0
0 0 if @_ > 1
72 0 0 unless exists $args{'type'}
0 0 unless do { BEGIN {${^WARNING_BITS} = "\x54\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x15\x55\x55\x55\x15"} grep {$_ ~~ qr/^(?: habit | daily | todo | reward )$/x;} $type }
73 0 0 unless exists $args{'text'}
75 0 0 exists $args{'value'} ? :
76 0 0 exists $args{'note'} ? :
77 0 0 exists $args{'up'} ? :
78 0 0 exists $args{'down'} ? :
79 0 0 exists $args{'extend'} ? :
0 0 if keys %args
0 0 if @_ > 16
85 0 0 $up ? :
86 0 0 $down ? :
113 0 0 unless @_ > 0
114 0 0 unless @_ > 1
0 0 unless do { BEGIN {${^WARNING_BITS} = "\x54\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x15\x55\x55\x55\x15"} grep {$_ ~~ qr/up|down/;} $direction }
0 0 if @_ > 2
124 0 0 unless @_ > 0
0 0 if @_ > 1
125 0 0 unless @_ > 0
0 0 if @_ > 1
129 0 0 unless @_ > 0
130 0 0 unless @_ > 1
0 0 if @_ > 2
148 0 0 unless @_ > 0
0 0 exists $args{'all'} ? :
0 0 if keys %args
0 0 if @_ > 3
157 0 0 if ($search_term =~ /^\Q$tag_prefix\E(?<tag>.*)/ms)
158 0 0 unless ($self->tags)
160 0 0 unless $tag_uuid
165 0 0 if $task->type eq 'reward'
166 0 0 if ($task->completed and not $all)
169 0 0 if ($tag_uuid) { }
0 0 elsif ($task->id eq $search_term) { }
0 0 elsif ($task->text =~ /\Q$search_term\E/i) { }
170 0 0 unless $task->tags
171 0 0 if $task->tags->{$tag_uuid}
190 0 0 unless @_ > 0
0 0 if @_ > 1
196 0 0 if (ref $results ne 'ARRAY')
217 0 0 unless @_ > 0
0 0 if @_ > 1
225 0 0 unless @_ > 0
0 0 if @_ > 1
229 0 0 unless @_ > 0
0 0 unless @_ > 1
0 0 if @_ > 2
231 0 0 if $DEBUG
243 0 0 unless @_ > 0
0 0 if @_ > 1
245 0 0 if $DEBUG
250 0 0 if ($DEBUG)
257 0 0 unless @_ > 0
0 0 if @_ > 1