Branch Coverage

File:lib/Parrot/Headerizer/Object.pm
Coverage:89.2%

line%coveragebranch
57100TFif (defined $args) { }
58100TFunless reftype $args eq 'HASH'
64100TFunless defined $$args{'macro_match'}
104100TFif $ofile =~ /^\Qsrc$PConfig{'slash'}ops\E/ or $ofile =~ m[^src/ops]
11050TFunless ($is_yacc)
113100TFif -f $sfile
124100TFif ($$self{'macro_match'}) { }
135100TFunless $hfile eq 'none'
137100TFif $$components{'is_static'}
139100TFif ($$self{'macro_match'})
140100TFif (grep {$_ eq $$self{'macro_match'};} @{$$components{'macros'};})
23450TFunless open my $fhin, '<', $cfile_name
25150TFunless open my $fhout, '>', $cfile_name
291100TFif ($macro eq 'PARROT_EXPORT') { }
100TFelsif ($macro eq 'PARROT_INLINE') { }
30450TFunless $args =~ s/([^(]+)\s*\((.+)\);?/$2/
33150TFunless ($self->valid_macro($macro))
334100TFif ($macro eq 'PARROT_IGNORABLE_RESULT')
371100TFif ($$args{'return_type'} =~ /\*/)
372100TFif (not $$args{'macros'}{'PARROT_CAN_RETURN_NULL'} || $$args{'macros'}{'PARROT_CANNOT_RETURN_NULL'}) { }
100TFelsif ($$args{'macros'}{'PARROT_CAN_RETURN_NULL'} and $$args{'macros'}{'PARROT_CANNOT_RETURN_NULL'}) { }
373100TFif (not $$args{'name'} =~ /^yy/)
421100TFif (length $function_decl <= $line_len) { }
489100TFif ($$self{'macro_match'}) { }
49950TF$nfuncs == 1 ? :
54150TFif ($source_code =~ m[/\*\s*HEADERIZER NONE:\s*$sourcefile\s*\*/])
54550TFunless ($$b{'is_api'} || 0) <=> ($$a{'is_api'} || 0)
573100TFif ($$func{'is_ignorable'} and not $$func{'return_type'} =~ /\*/)
582100TFif $$func{'is_static'}
594100TFif ($attrs)
599100TFif @macros
626100TFif ($arg =~ /(ARGIN|ARGOUT|ARGMOD|ARGFREE_NOTNULL|NOTNULL)\(/ or $arg eq 'PARROT_INTERP')
629100TFif ($arg =~ /\*/ and not $arg =~ /\b(SHIM|((ARGIN|ARGOUT|ARGMOD)(_NULLOK)?)|ARGFREE(_NOTNULL)?)\b/)
630100TFunless ($name =~ /^yy/)
634100TFif ($arg =~ /\bconst\b/ and $arg =~ /\*/ and not $arg =~ /\*\*/ and $arg =~ /\b(ARG(MOD|OUT))\b/)
644100TFif ($$self{'message'} ne '')
668100TFif (keys %warnings)