Branch Coverage

blib/lib/VRML/VRML2.pm
Criterion Covered Total %
branch 35 374 9.3


line true false branch
76 0 0 $self->{'BROWSER'} =~ /$VRML::VRML2::supported{'quote'}/i ? :
77 0 0 if defined $description
78 0 0 if defined $parameter
79 0 0 unless $self->{'BROWSER'} =~ /$VRML::VRML2::supported{'target'}/i
105 0 0 defined $collide && $collide ? :
168 0 0 if (ref $transform_list[0]) { }
173 0 0 unless @transform
177 0 0 if not defined $item or $item eq ''
178 0 0 ref $item ? :
179 0 0 unless ($value)
181 0 0 unless defined $x
182 0 0 unless defined $y
183 0 0 unless defined $z
187 0 0 if ($key eq 't' or $key eq 'translation')
188 0 0 if ($key eq 'r' or $key eq 'rotation')
189 0 0 if ($key eq 'c' or $key eq 'center')
190 0 0 if ($key eq 's' or $key eq 'scale')
191 0 0 if ($key eq 'so' or $key eq 'scaleOrientation')
192 0 0 if ($key eq 'bbs' or $key eq 'bboxSize')
193 0 0 if ($key eq 'bbc' or $key eq 'bboxCenter')
195 0 0 if ($key eq 'r' or $key eq 'rotation')
197 0 0 unless (defined $angle)
203 0 0 if $self->{'CONVERT'}
214 0 0 unless ($self->{'TAB'})
235 0 0 if (defined $hash{'skyColor'})
236 0 0 if (ref $hash{'skyColor'} eq 'ARRAY') { }
243 0 0 if (defined $hash{'skyAngle'})
244 0 0 if (ref $hash{'skyAngle'} eq 'ARRAY') { }
247 0 0 if $self->{'CONVERT'}
252 0 0 if $self->{'CONVERT'}
259 0 0 if (defined $hash{'groundColor'})
260 0 0 if (ref $hash{'groundColor'} eq 'ARRAY') { }
267 0 0 if (defined $hash{'groundAngle'})
268 0 0 if (ref $hash{'groundAngle'} eq 'ARRAY') { }
271 0 0 if $self->{'CONVERT'}
276 0 0 if $self->{'CONVERT'}
283 0 0 if $key =~ /Url$/
293 0 0 if defined $skyColorString
294 0 0 if defined $groundColorString
302 0 0 unless $url
317 0 0 unless defined $title
318 0 0 $self->{'BROWSER'} =~ /$VRML::VRML2::supported{'quote'}/i ? :
327 0 0 $self->{'BROWSER'} =~ /$VRML::VRML2::supported{'quote'}/i ? :
328 0 0 if (defined $info)
338 0 0 $self->{'BROWSER'} =~ /$VRML::VRML2::supported{'quote'}/i ? :
339 0 0 if defined $title
340 0 0 if defined $info
348 0 0 defined $headlight && !$headlight ? :
358 0 0 defined $whichChild && $whichChild > 0 ? :
361 0 0 unless defined $self->{'viewpoint_begin'}
376 0 0 unless defined $factor
377 0 0 if (defined $self->{'viewpoint_set'}) { }
385 0 0 if $dx > $dist
386 0 0 if $dy > $dist
387 0 0 if $dz > $dist
402 0 0 unless defined $self->{'viewpoint_set'}
403 0 0 if defined $center
404 0 0 defined $distance ? :
405 0 0 unless defined $x
406 0 0 unless defined $y
407 0 0 unless defined $z
408 0 0 unless defined $dx
409 0 0 unless defined $dy
410 0 0 unless defined $dz
423 0 0 if (defined $orientation)
424 0 0 if (not $orientation =~ /\s/) { }
431 0 0 if $orientation and $self->{'DEBUG'}
434 0 0 if (defined $angle)
435 0 0 if $self->{'CONVERT'}
440 0 0 if defined $fieldOfView and $self->{'CONVERT'}
441 0 0 $jump ? :
0 0 if (defined $jump)
442 0 0 unless $self->{'TAB_VIEW'}
443 0 0 if ($description =~ /^#/)
452 0 0 unless (defined $self->{'viewpoint_begin'})
465 0 0 $on ? :
0 0 if (defined $on)
466 0 0 if defined $color
481 0 0 unless $x1
482 0 0 unless $x2
483 0 0 unless $y1
484 0 0 unless $y2
485 0 0 unless $z1
486 0 0 unless $z2
490 0 0 unless defined $order
491 0 0 if $self->{'DEBUG'}
493 0 0 if (defined $radius and $radius > 0) { }
494 0 0 if ($dx and $order =~ /x/i)
495 0 0 if $order =~ /^x$/i
496 0 0 if $order =~ /^x../i
497 0 0 if $order =~ /yxz/i
498 0 0 if $order =~ /zxy/i
499 0 0 if $order =~ /..x$/i
505 0 0 if ($dy and $order =~ /y/i)
506 0 0 if $order =~ /^y$/i
507 0 0 if $order =~ /^y../i
508 0 0 if $order =~ /xyz/i
509 0 0 if $order =~ /zyx/i
510 0 0 if $order =~ /..y$/i
516 0 0 if ($dz and $order =~ /z/i)
517 0 0 if $order =~ /^z$/i
518 0 0 if $order =~ /^z../i
519 0 0 if $order =~ /yzx/i
520 0 0 if $order =~ /xzy/i
521 0 0 if $order =~ /..z$/i
527 0 0 unless ($order)
574 1 0 unless defined $height
575 1 0 unless defined $depth
587 0 0 $top ? :
0 1 if defined $top
588 0 0 $side ? :
0 1 if defined $side
589 0 0 $bottom ? :
0 1 if defined $bottom
590 0 1 if (defined $inside and $inside) { }
610 0 0 unless defined $xDimension
611 0 0 unless defined $zDimension
612 0 0 unless defined $xSpacing
613 0 0 unless defined $zSpacing
614 0 0 if defined $creaseAngle and $self->{'CONVERT'}
615 0 0 $colorPerVertex ? :
0 0 if defined $colorPerVertex
616 0 0 $solid ? :
0 0 if defined $solid
617 0 0 if (ref $color eq 'ARRAY') { }
635 0 0 unless defined $colorIndex
663 0 0 $width ? :
664 0 0 $height ? :
665 0 0 defined $depth ? :
666 0 0 if $appearance
668 0 0 if $#color > 0
697 0 0 if $self->{'CONVERT'}
699 0 0 if $self->{'CONVERT'}
701 0 0 if $self->{'CONVERT'}
702 0 0 $beginCap ? :
0 0 if defined $beginCap
703 0 0 $endCap ? :
0 0 if defined $endCap
713 0 0 if $alpha > $to
715 0 0 if ($from == $to) { }
733 0 1 $self->{'BROWSER'} =~ /$VRML::VRML2::supported{'quote'}/i ? :
734 1 0 if (defined $string)
735 0 1 if (ref $string) { }
744 1 0 if (defined $font or defined $align) { }
745 1 0 if (defined $font)
748 0 1 if (defined $align)
785 0 6 unless $appearance_list
791 0 6 ref $item ? :
793 6 0 unless ($value)
798 0 6 if ($key eq 'd')
799 0 6 if ($key eq 'e')
800 0 6 if ($key eq 's')
801 0 6 if ($key eq 'ai')
802 0 6 if ($key eq 'sh')
803 0 6 if ($key eq 'tr')
804 0 6 if ($key eq 'tex')
805 0 6 if ($key eq 'textrans')
806 0 6 if ($key eq 'def')
807 0 6 if ($key eq 'deftex')
808 0 6 if ($key eq 'defmat')
809 0 6 if ($key eq 'use')
814 6 0 if ($key eq 'diffuseColor' | $key eq 'emissiveColor' | $key eq 'specularColor') { }
816 0 6 if ($value =~ /,/) { }
820 0 0 if $color and $self->{'DEBUG'}
828 0 6 if $color and $self->{'DEBUG'}
835 0 6 if $def
837 0 6 if $defmat
838 0 0 if $deftex
839 0 0 if $deftex
841 6 0 %material ? :
0 6 undef || $texture =~ /\.avi|\.mpg|\.mov/i ? :
0 6 $texture =~ /\.gif|\.jpg|\.png|\.bmp/i ? :
850 0 0 unless @_
854 0 0 defined $loop && $loop ? :
864 0 0 unless @_
872 0 0 unless @_
880 0 0 unless @_
888 0 0 unless @_
896 0 0 unless @_
904 0 0 unless @_
912 0 0 unless @_
922 0 0 unless @_
939 0 0 if ($self->{'TAB'}) { }
950 0 0 unless defined $name
952 0 0 if (defined $code)
953 0 0 if (ref $code eq 'CODE') { }
968 0 0 unless @_