Branch Coverage

blib/lib/Elive/Entity/Participants.pm
Criterion Covered Total %
branch 9 36 25.0


line true false branch
39 48 10 if ($type) { }
10 0 elsif (defined $spec) { }
40 0 48 unless $type eq 'ARRAY'
55 0 106 Elive::Util::_reftype($_) eq 'ARRAY' ? :
56 0 106 unless defined $_
58 0 106 if (not ref $_ and /^-(\w+)$/) { }
61 0 0 if ($opt =~ /^(participant|other)(s?)$/) { }
0 0 elsif ($opt =~ /^moderator(s?)$/) { }
73 47 0 unless ref $_ and &Scalar::Util::blessed($_) and $_->isa($element_class)
76 0 106 if $cur_role
109 0 0 unless $self
117 0 0 unless &Scalar::Util::blessed($participant) and $participant->isa('Elive::Entity::Participant')
125 0 0 if (not defined $participant->type or $participant->type == $Elive::Entity::Participant::TYPE_USER) { }
0 0 elsif ($participant->type == $Elive::Entity::Participant::TYPE_GROUP) { }
0 0 elsif ($participant->type == $Elive::Entity::Participant::TYPE_GUEST) { }
168 0 0 if (wantarray) { }
180 0 0 if (exists $$_guests{$_}) { }
0 0 elsif ($role <= 2) { }