Condition Coverage

blib/lib/Verilog/Getopt.pm
Criterion Covered Total %
condition 59 98 60.2


and 3 conditions

line !l l&&!r l&&r condition
114 97 26 0 $param eq '-v' || $param eq '-y' and $self->{'vcs_style'}
97 4 0 $param =~ /^\+libext\+(.*)$/ and $self->{'vcs_style'}
76 22 0 $param =~ /^\+incdir\+(.*)$/ and $self->{'vcs_style'}
53 24 0 $param =~ /^\+define\+(.*)$/ and $self->{'vcs_style'}
56 0 0 $param =~ /^\+librescan$/ and $self->{'vcs_style'}
47 9 0 $param =~ /^-D([^=]*)=(.*)$/ || $param =~ /^-D([^=]*)()$/ and $self->{'gcc_style'}
50 0 0 $param =~ /^-U([^=]*)$/ and $self->{'gcc_style'}
47 3 0 $param =~ /^-I(.*)$/ and $self->{'gcc_style'}
177 20 0 0 $self->{'filename_expansion'} and not $param =~ /^-.*$/
20 0 0 $self->{'filename_expansion'} and not $param =~ /^-.*$/ and $optdir ne "."
202 49 0 2 $optdir ne "." and not "File::Spec"->file_name_is_absolute($filename)
221 49 0 1 ref $token and ref $token eq "ARRAY"
235 4 0 0 ref $token and ref $token eq "ARRAY"
249 3 0 0 ref $token and ref $token eq "ARRAY"
262 45 0 1 ref $token and ref $token eq "ARRAY"
275 563 0 0 ref $_[0] and ref $_[0] eq "ARRAY"
298 0 4 9 defined $defvalue and $defvalue ne ""
353 0 0 0 ref $_[0] && shift()
416 84 0 492 -r $filename and not -d $filename
423 84 0 0 -r $filename and not -d $filename
453 212 0 71 -r $found and not -d $found
514 976 119 828 ref $val and defined $val->[1]
556 8128 419 1 defined $oldval and $oldval ne $value || ($oldparams || '') ne ($params || '')
419 0 1 defined $oldval and $oldval ne $value || ($oldparams || '') ne ($params || '') and $self->{'define_warnings'}
560 1 0 0 length $oldval < 40 && $oldval =~ /^[^\n\r\f]$/ && length $value < 40 && $value =~ /^[^\n\r\f]$/

or 2 conditions

line l !l condition
39 752 0 $class ||= "Verilog::Getopt"
298 9 0 $defvalue || ''
410 45 556 shift() || 'all'
550 0 22 $params || ''

or 3 conditions

line l !l&&r !l&&!r condition
114 3 3 123 $param eq "-F" or $param eq "-f"
4 22 97 $param eq '-v' || $param eq '-y'
9 0 47 $param =~ /^-D([^=]*)=(.*)$/ || $param =~ /^-D([^=]*)()$/
556 1 0 419 $oldval ne $value || ($oldparams || '') ne ($params || '')
566 469 7516 563 $params or $cmdline