Branch Coverage

blib/lib/FTN/Crypt/Nodelist.pm
Criterion Covered Total %
branch 27 42 64.2


line true false branch
100 0 2 unless (%opts)
104 0 2 unless ($opts{'Nodelist'})
113 2 0 unless ref $opts{'Nodelist'}
114 0 2 unless (ref $opts{'Nodelist'} eq 'ARRAY')
118 0 2 unless (scalar @{$opts{'Nodelist'};})
126 0 2 unless ($nl)
133 2 0 if ($opts{'Pointlist'})
134 0 2 unless ref $opts{'Pointlist'}
135 0 2 unless (ref $opts{'Pointlist'} eq 'ARRAY')
139 2 0 if (scalar @{$opts{'Pointlist'};})
143 0 4 unless ($pl)
152 1 1 if ($opts{'Username'})
153 0 1 unless ($opts{'Username'} =~ /^\w+([\.-]?\w+)*$/)
192 0 7 unless ($ftn_addr)
198 0 7 unless ($addr)
203 2 5 $ftn_addr =~ m[^\d+:\d+/\d+\.(\d+)(?:\@\w+)?$] && $1 && $self->{'_pointlist'} ? :
208 6 2 if $node
210 1 6 unless ($node)
215 5 16 /:/ ? :
218 1 5 unless ($flags{$FTN::Crypt::Constants::ENC_NODELIST_FLAG})
222 0 5 unless ($FTN::Crypt::Constants::ENC_METHODS{$flags{$FTN::Crypt::Constants::ENC_NODELIST_FLAG}})