Branch Coverage

blib/lib/VLGal/Style.pm
Criterion Covered Total %
branch 41 104 39.4


line true false branch
493 0 1 defined $_[0] ? :
496 0 1 unless ref $opt eq 'HASH'
502 1 0 exists $$opt{'css_definition_file'} ? :
505 1 0 exists $$opt{'image_icon_folder'} ? :
508 1 0 exists $$opt{'image_icon_next_peer'} ? :
511 1 0 exists $$opt{'image_icon_next_seq'} ? :
514 1 0 exists $$opt{'image_icon_previous_peer'} ? :
517 1 0 exists $$opt{'image_icon_previous_seq'} ? :
520 0 1 exists $$opt{'max_columns_dir'} ? :
523 0 1 exists $$opt{'max_columns_image'} ? :
526 0 1 if (exists $$opt{'size'}) { }
527 0 0 unless ref $$opt{'size'} eq 'ARRAY'
535 0 1 exists $$opt{'table_order_dir'} ? :
538 0 1 exists $$opt{'table_order_image'} ? :
541 0 1 if exists $$opt{'verbose'}
553 0 6 if $$opt{$attr}
563 6 6 unless -f $fs_name
572 0 6 unless $$opt{$attr}
589 0 0 if ($size->get_max_height and $size->get_max_width) { }
613 8 2 unless (exists $ALLOW_ISA{$name} or exists $ALLOW_REF{$name} or exists $ALLOW_RX{$name} or exists $ALLOW_VALUE{$name})
621 8 2 if (ref $val and exists $ALLOW_ISA{$name})
623 8 0 if &UNIVERSAL::isa($val, $class)
628 0 2 if (ref $val and exists $ALLOW_REF{$name})
629 0 0 if exists $ALLOW_REF{$name}{ref $val}
633 0 2 if (defined $val and not ref $val and exists $ALLOW_RX{$name})
635 0 0 if $val =~ /$rx/
640 2 0 if (not ref $val and exists $ALLOW_VALUE{$name})
641 2 0 if exists $ALLOW_VALUE{$name}{$val}
659 0 0 if $val1 eq $val2
716 0 0 if (scalar @_) { }
746 0 1 if (ref $_[0] and &UNIVERSAL::isa($_[0], 'VLGal::Style')) { }
1 0 elsif (not ref $_[0] and $_[0] eq 'VLGal::Style') { }
754 0 1 if defined $SINGLETON
766 0 0 if ($$self{'VLGal_Style'}{'verbose'}) { }
785 0 0 unless &_value_is_allowed('size', @_)
796 0 1 unless &_value_is_allowed('css_definition_file', $val)
808 0 0 unless $idx == int $idx
809 0 0 unless $idx >= 0
812 0 0 unless &_value_is_allowed('size', $val)
823 0 1 unless &_value_is_allowed('image_icon_folder', $val)
834 0 1 unless &_value_is_allowed('image_icon_next_peer', $val)
845 0 1 unless &_value_is_allowed('image_icon_next_seq', $val)
856 0 1 unless &_value_is_allowed('image_icon_previous_peer', $val)
867 0 1 unless &_value_is_allowed('image_icon_previous_seq', $val)
878 0 1 unless &_value_is_allowed('max_columns_dir', $val)
889 0 1 unless &_value_is_allowed('max_columns_image', $val)
900 0 0 unless $num == int $num
910 0 2 unless &_value_is_allowed('size', @_)
921 0 1 unless &_value_is_allowed('table_order_dir', $val)
932 0 1 unless &_value_is_allowed('table_order_image', $val)
941 0 0 if (shift()) { }
960 0 0 unless &_value_is_allowed('size', @_)