Condition Coverage

blib/lib/VIC/Receiver.pm
Criterion Covered Total %
condition 81 162 50.0


and 2 conditions

line l !l condition
411 0 12 $tb and scalar @$tb
413 0 12 $fb and scalar @$fb

and 3 conditions

line !l l&&!r l&&r condition
61 0 0 33 defined $self->pic and defined $self->pic->type
83 17 1 2 $sim eq "simulator" and not $stype =~ /disable/i
17 0 1 $sim eq "simulator" and $stype =~ /disable/i
141 0 0 94 defined $stack and ref $stack eq "ARRAY"
156 0 0 43 exists $self->ast->{$parent} and ref $self->ast->{$parent} eq "ARRAY"
0 0 43 exists $self->ast->{$parent} and ref $self->ast->{$parent} eq "ARRAY" and $parent ne $anon_block
242 0 139 107 $self->simulator and $self->simulator->can($method)
309 0 0 1 exists $vref->{'type'} and $vref->{'type'} eq "HASH"
0 0 0 exists $vref->{'type'} and $vref->{'type'} eq "ARRAY"
0 0 0 exists $vref->{'type'} and $vref->{'type'} eq "string"
355 0 0 1 ref $rhs eq "HASH" and exists $rhs->{'TABLE'}
356 0 0 1 ref $rhs eq "HASH" and exists $rhs->{'TABLE'}
440 0 0 12 $true_name and exists $mapping->{$true_name}
445 8 0 4 $false_name and exists $mapping->{$false_name}
672 12 0 0 $method and ref $value eq "ARRAY"
675 0 1 11 $self->simulator and $self->simulator->supports_modifier($modifier)
1001 0 0 70 $method and $self->pic->can($method)
1184 27 0 16 $child =~ /^(?:True|False)/ and @newcode
16 0 11 $child =~ /^(?:Action|ISR)/ and @newcode
0 0 16 $child =~ /^Loop/ and @newcode
1211 0 12 4 exists $mapping->{$child}{'loop'} and $mapping->{$child}{'loop'} eq 1
1262 0 0 43 defined $parent and exists $ast->{$parent}
0 0 43 defined $parent and exists $ast->{$parent} and ref $ast->{$parent} eq "ARRAY"
0 43 0 defined $parent and exists $ast->{$parent} and ref $ast->{$parent} eq "ARRAY" and $parent ne $mapped_block
1353 0 8 1 defined $end_label and $blockcount > bless( {"sign" => "+","value" => bless( [1], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
1388 0 0 5 $pblock ne $block_name and $mapping->{'block'} eq $block_name
1535 0 1 30 $self->simulator and not $self->simulator->disable
1 29 1 $self->simulator and not $self->simulator->disable and $ast->{'Simulator'} || $ast->{'asserts'}

or 2 conditions

line l !l condition
407 12 0 $$predicate[{sign => '+', value => ['0']}] || undef
408 12 0 $$predicate[{sign => '+', value => ['1']}] || undef
1369 43 0 $ast->{'block_mapping'}{$block_name}{'params'} || []
1440 42 0 $vhref->{$var}{'type'} || 'byte'

or 3 conditions

line l !l&&r !l&&!r condition
140 94 0 0 $self->ast->{$name} || $self->ast->{$anon_block}
350 3 0 0 ref $rhs eq "HASH" or ref $rhs eq "ARRAY"
354 1 0 2 exists $rhs->{'TABLE'} or ref $rhs eq "ARRAY"
360 1 0 0 $label || $lhs
943 35 0 100 $funcs or $macros
957 8 0 0 $ast->{'variables'}{$varname}{'name'} || $varname
962 0 0 8 $funcs or $macros
993 15 21 0 $extra{'STACK'}{$var1} || $var1
996 13 20 2 $extra{'STACK'}{$var2} || $var2
1007 22 0 48 $funcs or $macros
1019 60 1 0 $sz == bless( {"sign" => "+","value" => bless( [3], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) or $sz == bless( {"sign" => "+","value" => bless( [4], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
1051 33 1 0 $sz == bless( {"sign" => "+","value" => bless( [3], 'Math::BigInt::Calc' )}, 'Math::BigInt' ) or $sz == bless( {"sign" => "+","value" => bless( [4], 'Math::BigInt::Calc' )}, 'Math::BigInt' )
1128 57 0 0 $ast->{'variables'}{$varname}{'name'} || $varname
1151 9 0 48 $funcs or $macros
1176 43 0 0 $mapping->{$block}{'block'} || $block
1178 0 0 43 $child eq $block or $child eq $mapped_block
0 0 43 $child eq $block or $child eq $mapped_block or $child eq $parent
1212 4 0 0 $mapping->{$child}{'start_label'} || $end_label
1384 5 0 0 $mapping->{'param_prefix'} || lc $block_name . '_param'
1442 1 41 0 $vhref->{$var}{'label'} || $name
1466 8 12 19 $vhref->{$var}{'scope'} eq "global" or $ast->{'code_config'}{'variable'}{'export'}
1535 18 1 11 $ast->{'Simulator'} || $ast->{'asserts'}