Branch Coverage

blib/lib/Schedule/Activity/Message.pm
Criterion Covered Total %
branch 39 48 81.2


line true false branch
19 14218 186409 if (is_hashref($opt{'message'})) { }
33 186376 elsif (is_arrayref($opt{'message'})) { }
186376 0 elsif (not is_ref($opt{'message'})) { }
20 14216 2 if (is_arrayref($opt{'message'}{'alternates'})) { }
2 0 elsif (defined $opt{'message'}{'name'} and not is_ref($opt{'message'}{'name'})) { }
24 14257 0 if is_hashref($_)
29 71 0 if not is_ref($_)
30 186376 0 if not is_ref($_)
36 152550 221205 unless (defined $msg)
38 206981 14224 unless (is_ref($msg))
39 206923 58 unless (defined $names->{$msg})
42 14224 0 if (is_hashref($msg))
44 14220 4 unless (defined $names->{$name})
55 396 15 unless (is_hashref($conf))
57 2 13 if (is_hashref($conf->{'attributes'}))
59 11 4 if (is_arrayref($conf->{'alternates'}))
61 12 0 if (is_hashref($message->{'attributes'}))
68 391 44 unless (is_ref($msg))
69 11 33 if (is_arrayref($msg))
71 33 0 if (is_hashref($msg))
72 5 28 if (exists $msg->{'name'})
73 0 5 if (not defined $msg->{'name'}) { }
2 3 elsif (not defined $opt{'names'}{$msg->{'name'}}) { }
76 14 19 if (is_arrayref($msg->{'alternates'}))