Branch Coverage

blib/lib/Video/DVDRip/Config.pm
Criterion Covered Total %
branch 13 78 16.6


line true false branch
665 1 0 unless (check_nptl_workaround_possible())
669 0 1 if ($self->get_value('workaround_nptl_bugs')) { }
682 0 1 if ($self->get_value('dvd_device') eq '')
687 1 0 if ($self->get_value('preferred_lang') eq '')
691 1 0 if $lang eq 'c'
694 1 0 if ($lang_list =~ /$lang -/i)
708 0 1 if $filename eq ''
709 0 1 unless -r $filename
714 0 1 if ($@ or ref $loaded ne 'Video::DVDRip::Config')
723 23 0 if (exists $loaded->config->{$par})
726 0 23 if (exists $self->config->{$par}{'onload'})
756 0 0 if $filename eq ''
762 0 0 unless open $fh, "> $filename"
781 0 0 unless $self->last_saved_data
796 0 4 unless exists $$config{$name}
805 0 3 unless exists $$config{$name}
818 0 0 if $$v{'type'} eq $type
838 0 0 if $preset->name eq $name
858 0 0 unless $self->has('hal')
862 0 0 unless open my $fh, 'LC_ALL=C lshal |'
865 0 0 if (/^udi/)
866 0 0 if $entry and $$entry{'dvd'}
869 0 0 if (/storage\.model\s+=\s+'([^']+)/)
872 0 0 if (/block\.device\s+=\s+'([^']+)/)
875 0 0 if (/storage\.cdrom\.dvd\s+=\s+true/)
881 0 0 if $entry and $$entry{'dvd'}
894 0 0 if (not $first_name or $first_name gt $$href{$device})
932 0 0 unless (-f $file)
934 0 0 if -x "$p/$file"
938 0 0 if (-x $file) { }
942 0 0 unless -e $file
954 0 0 if $value =~ /\s/
955 0 0 unless $value =~ m[^/]
957 0 0 if (not -w $value) { }
958 0 0 unless -e $value
973 0 0 if ($value =~ /^\d+$/) { }
987 0 0 if $value eq ''
997 0 0 if (-e $value) { }
1012 0 0 if $val eq $value