Branch Coverage

blib/lib/Image/ExifTool/VCard.pm
Criterion Covered Total %
branch 82 96 85.4


line true false branch
211 52 68 unless ($tagInfo)
212 50 2 if ($srcInfo) { }
223 1 119 if $langCode
234 3 117 defined $enc ? :
235 2 118 if ($enc eq 'b' or $enc eq 'base64') { }
239 1 117 if ($enc eq "quoted-printable")
245 1 5 unless $1
247 0 5 unless $unescapeVCard{$1}
250 1 117 if @vals > 1
266 0 2 unless $raf->Read($buff, 24) and $raf->Seek(0, 0) and $buff =~ /^BEGIN:(VCARD|VCALENDAR|VNOTE)\r\n/i
274 0 2 if $et->{'OPTIONS'}{'FastScan'} and $et->{'OPTIONS'}{'FastScan'} == 3
278 2 0 if $more
281 139 0 if defined $buff
284 137 2 if ($more)
287 0 137 if $buff =~ s/^[ \t]//
289 28 111 if ($val =~ /^(BEGIN|END):(V?)(\w+)$/i) { }
1 110 elsif ($ok) { }
290 14 14 lc $1 eq 'begin' ? :
291 2 22 if ($what eq "Card" or $what eq "Calendar" or $what eq "Note")
292 3 3 if ($begin) { }
300 14 8 if ($isComponent{$what})
301 7 7 if ($begin) { }
4 3 elsif ($component and $component eq $what) { }
302 4 3 unless ($component)
316 7 7 if ($begin) { }
7 0 elsif (@count > 1) { }
317 3 4 if $v
327 0 111 unless ($val =~ s/^([-A-Za-z0-9.]+)//)
333 8 103 if ($tag =~ s/^([-A-Za-z0-9]+)\.//) { }
64 39 elsif ($component) { }
343 6 105 if $tag =~ /[a-z]/
347 110 1 if ($srcInfo) { }
350 1 0 unless $name
352 0 1 if $name =~ s/^X-//
355 40 71 if (@count > 1)
360 20 20 unless defined $c
369 2 54 unless $2
372 56 56 unless $val =~ s/^"([^"]*)",?// or $val =~ s/^([^";:,]+,?)//
373 38 18 $p eq 'Type' ? :
374 15 41 defined $param{$p} ? :
376 56 0 if (defined $param{$p}) { }
377 0 1 unless $unescapeVCard{$1}
382 0 111 unless $val =~ s/^://
384 23 88 if $param{'Type'}
386 1 110 if ($val =~ s[^data:(\w+)/(\w+);base64,][])
397 324 9 unless defined $param{$p}
400 8 1 $srcTag2 ? :
410 0 2 unless $ok