Branch Coverage

blib/lib/Slack/WebHook.pm
Criterion Covered Total %
branch 27 40 67.5


line true false branch
46 0 3 if scalar @opts > 1
50 1 2 ref $txt_or_ref ? :
74 1 1 if ($hours)
76 0 1 if length $timestr
77 0 1 $hours > 1 ? :
80 1 1 if ($minutes)
82 1 0 if length $timestr
83 1 0 $minutes > 1 ? :
87 1 1 if length $timestr
88 2 0 $seconds > 1 ? :
91 2 0 $delta > 0 ? :
141 0 10 unless ref $defaults eq 'HASH'
146 5 5 if ($nb_args <= 1) { }
151 0 5 if ($nb_args % 2)
170 0 10 unless $nb_args
172 0 10 if ($nb_args == 1) { }
176 0 10 if $nb_args % 2
183 2 8 if defined $opts{'post_text'}
190 5 5 defined $title ? :
206 0 13 unless ref $data eq 'HASH'