Branch Coverage

blib/lib/Slack/WebHook.pm
Criterion Covered Total %
branch 32 46 69.5


line true false branch
60 0 4 if scalar @opts > 1
64 1 3 ref $txt_or_ref ? :
88 1 1 if ($hours)
90 0 1 if length $timestr
91 0 1 $hours > 1 ? :
94 1 1 if ($minutes)
96 1 0 if length $timestr
97 1 0 $minutes > 1 ? :
101 1 1 if length $timestr
102 2 0 $seconds > 1 ? :
105 2 0 $delta > 0 ? :
156 0 10 unless ref $defaults eq 'HASH'
161 5 5 if ($nb_args <= 1) { }
166 0 5 if ($nb_args % 2)
185 0 10 unless $nb_args
187 0 10 if ($nb_args == 1) { }
191 0 10 if $nb_args % 2
198 2 8 if defined $opts{'post_text'}
205 5 5 defined $title ? :
222 0 14 unless ref $data eq 'HASH'
224 14 0 if ($self->auto_detect_utf8)
226 4 38 if (defined $data->{$field})
227 3 1 unless (&Encode::is_utf8($data->{$field}))