Branch Coverage

blib/lib/Bio/Phylo/Mediators/TaxaMediator.pm
Criterion Covered Total %
branch 27 34 79.4


line true false branch
59 0 0 unless ($self)
91 12544 4 if (ref $obj and $obj->can('_type'))
95 10669 1875 if ($type == 2 or $type == 5 or $type == 7 or $type == 6 or $type == 4 or $type == 8)
98 116 10553 unless $id_by_type{$type}
138 13384 0 if (defined $id)
143 192 13192 if ($taxa_id)
145 125 67 if (@others == 1)
152 10667 2717 if (exists $object[$id])
157 192 13192 if (exists $one_to_one{$id})
162 145 13239 if (exists $one_to_many{$id})
199 126 144 unless $one_to_many{$one_id}
206 127 143 if (&isweak($object[$one_id]))
255 48 760 if (defined $opt{'-type'}) { }
265 304 456 exists $one_to_one{$id} ? :
302 0 38 if ($one) { }
307 0 38 if $target
309 0 0 if $one_id and $one_to_many{$one_id}