Branch Coverage

blib/lib/VRML/VRML1.pm
Criterion Covered Total %
branch 41 312 13.1


line true false branch
85 0 0 unless @_
88 0 0 $self->{'BROWSER'} =~ /$VRML::VRML1::supported{'quote'}/i ? :
89 0 0 if defined $description
90 0 0 if (defined $parameter and $self->{'BROWSER'} =~ /$VRML::VRML1::supported{'target'}/i)
91 0 0 if $parameter =~ /target\s*=(.+)/i
105 0 0 if $self->{'BROWSER'} =~ /$VRML::VRML1::supported{'L3D_ext'}/i
128 0 0 unless @_
165 0 0 if ref $hash{'skyColor'} eq 'ARRAY'
167 0 0 if ref $hash{'frontUrl'} eq 'ARRAY'
176 0 0 if (defined $skyColorString)
186 0 0 if (defined $bgimage)
194 0 0 unless @_
203 0 0 unless @_
204 0 0 $self->{'BROWSER'} =~ /$VRML::VRML1::supported{'quote'}/i ? :
205 0 0 if (defined $string)
206 0 0 if ref $string eq 'ARRAY'
217 0 0 $self->{'BROWSER'} =~ /$VRML::VRML1::supported{'quote'}/i ? :
218 0 0 if defined $title
219 0 0 if (defined $string)
220 0 0 if ref $string eq 'ARRAY'
230 0 0 if ref $type eq 'ARRAY'
233 0 0 defined $headlight && !$headlight ? :
242 0 0 defined $whichChild && $whichChild > 0 ? :
246 0 0 unless defined $self->{'viewpoint_begin'}
263 0 0 unless defined $factor
264 0 0 if (defined $self->{'viewpoint_set'}) { }
272 0 0 if $dx > $dist
273 0 0 if $dy > $dist
274 0 0 if $dz > $dist
288 0 0 unless defined $self->{'viewpoint_set'}
289 0 0 if defined $center
290 0 0 defined $distance ? :
291 0 0 unless defined $x
292 0 0 unless defined $y
293 0 0 unless defined $z
294 0 0 unless defined $dx
295 0 0 unless defined $dy
296 0 0 unless defined $dz
309 0 0 if (defined $orientation)
310 0 0 if (not $orientation =~ /\s/) { }
317 0 0 if $orientation and $self->{'DEBUG'}
320 0 0 if (defined $angle)
321 0 0 if $self->{'CONVERT'}
326 0 0 if defined $heightAngle and $self->{'CONVERT'}
327 0 0 unless $self->{'TAB_VIEW'}
333 0 0 unless (defined $self->{'viewpoint_begin'})
345 0 0 $on ? :
0 0 if (defined $on)
346 0 0 if defined $color
355 0 0 unless @_
361 0 0 unless $x1
362 0 0 unless $x2
363 0 0 unless $y1
364 0 0 unless $y2
365 0 0 unless $z1
366 0 0 unless $z2
370 0 0 unless ($radius =~ /^(-?)([0-9]*)(\.?)([0-9]+)$/)
371 0 0 unless defined $order
372 0 0 if $self->{'DEBUG'}
374 0 0 if ($appearance)
375 0 0 if (defined $radius and $radius == 0 and $self->{'BROWSER'} =~ /Cosmo Player/) { }
381 0 0 if (defined $radius and $radius > 0) { }
382 0 0 if ($dx and $order =~ /x/)
384 0 0 if $order =~ /^x$/i
385 0 0 if $order =~ /^x../i
386 0 0 if $order =~ /yxz/i
387 0 0 if $order =~ /zxy/i
388 0 0 if $order =~ /..x$/i
393 0 0 if ($dy and $order =~ /y/)
395 0 0 if $order =~ /^y$/i
396 0 0 if $order =~ /^y../i
397 0 0 if $order =~ /xyz/i
398 0 0 if $order =~ /zyx/i
399 0 0 if $order =~ /..y$/i
404 0 0 if ($dz and $order =~ /z/)
406 0 0 if $order =~ /^z$/i
407 0 0 if $order =~ /^z../i
408 0 0 if $order =~ /yzx/i
409 0 0 if $order =~ /xzy/i
410 0 0 if $order =~ /..z$/i
415 0 0 unless ($order)
437 1 0 if $appearance
439 1 0 if $appearance
447 1 0 if $appearance
449 1 0 if $appearance
457 1 0 unless defined $height
458 1 0 unless defined $depth
459 1 0 if $appearance
461 1 0 if $appearance
470 1 0 if $appearance
471 0 1 if (defined $top or defined $side or defined $bottom)
472 0 0 unless defined $top
473 0 0 unless defined $side
474 0 0 unless defined $bottom
475 0 0 if $top
476 0 0 if $side
477 0 0 if $bottom
480 1 0 if $appearance
490 0 0 defined $depth ? :
492 0 0 if ($appearance)
493 0 0 if ($appearance =~ /,/)
501 0 0 if $appearance
508 1 0 if $appearance
510 1 0 if $appearance
517 0 1 $self->{'BROWSER'} =~ /$VRML::VRML1::supported{'quote'}/i ? :
518 1 0 if defined $string
519 1 0 if $appearance or $font
520 1 0 if (defined $string)
521 0 1 if (ref $string) { }
528 1 0 if (defined $font)
532 0 1 if (defined $align)
538 1 0 if $appearance or $font
545 0 0 if $self->{'BROWSER'} =~ /$VRML::VRML1::supported{'L3D_ext'}/i
554 0 6 unless $appearance_list
560 6 0 unless ($value)
565 0 6 if ($key eq 'd')
566 0 6 if ($key eq 'e')
567 0 6 if ($key eq 's')
568 0 6 if ($key eq 'a')
569 0 6 if ($key eq 'sh')
570 0 6 if ($key eq 'tr')
571 0 6 if ($key eq 'tex')
572 0 6 if ($key eq 'def')
573 0 6 if ($key eq 'defmat')
574 0 6 if ($key eq 'deftex')
576 6 0 if ($key eq 'diffuseColor' | $key eq 'emissiveColor' | $key eq 'specularColor' | $key eq 'ambientColor') { }
577 0 6 if ($value =~ /,/) { }
581 0 0 if $color and $self->{'DEBUG'}
589 0 6 if $color and $self->{'DEBUG'}
596 0 6 if $def
597 0 6 if $defmat
600 0 6 if $deftex
601 0 6 if defined $texture
602 0 6 if $def
611 0 0 unless @_
614 0 0 if (ref $transform_list[0]) { }
622 0 0 ref $item ? :
623 0 0 unless ($value)
625 0 0 unless defined $x
626 0 0 unless defined $y
627 0 0 unless defined $z
631 0 0 if ($key eq 't')
632 0 0 if ($key eq 'r' or $key eq 'rotation')
633 0 0 if ($key eq 'c')
634 0 0 if ($key eq 's')
635 0 0 if ($key eq 'so')
637 0 0 if ($key eq 'r' or $key eq 'rotation')
639 0 0 unless (defined $angle)
645 0 0 if $self->{'CONVERT'}
663 0 0 unless @_
665 0 0 defined $loop && $loop ? :
675 0 0 unless defined $name
677 0 0 if (defined $code)
678 0 0 if (ref $code eq 'CODE') { }
693 0 0 unless @_
702 0 0 unless ($VRML::VRML1::AUTOLOAD =~ /^route|sensor$|^interpolator$|^elevationgrid$|^indexedfaceset$/)