Branch Coverage

blib/lib/Security/CVSS.pm
Criterion Covered Total %
branch 24 32 75.0


line true false branch
80 2 2 if (defined $Params)
106 35 31 if (exists $ALL_PARAMS{$Param}{'V2P'}{$Value}) { }
111 0 66 unless (grep /^$Value$/i, keys %{$ALL_PARAMS{$Param}{'Params'};})
134 4 4 if (defined $Vector) { }
136 0 4 unless ($Vector =~ m[^\(AV:([RL])/AC:([HL])/Au:(R|NR)/C:([NPC])/I:([NPC])/A:([NPC])/B:([NCIA])(/E:([UPFH])/RL:([OTWU])/RC:(U|Uc|C))?\)])
150 2 2 if (defined $8)
169 0 28 unless (defined $$self{$Param})
190 2 6 unless (defined $$self{$Param})
197 2 2 if ($Environmental)
214 0 7 if (ref $Params ne 'HASH')
219 0 54 unless (exists $ALL_PARAMS{$Param})
234 0 77 unless (defined $$self{$Param})
250 5 28 if ($$self{'ImpactBias'} . 'impact' eq lc $ImpactType) { }
18 10 elsif ($$self{'ImpactBias'} eq 'normal') { }
273 0 12 unless (defined $$self{$Param})
294 0 2 unless (defined $$self{$Param})