Branch Coverage

blib/lib/Perl/Critic/Policy/Modules/ProhibitPOSIXimport.pm
Criterion Covered Total %
branch 36 46 78.2


line true false branch
56 0 68 unless ($elem->module || '') eq 'POSIX'
57 34 34 unless _inc_exporter_imports_type($elem) eq 'default'
58 4 30 if _elem_is_in_package_main($elem)
59 6 24 if _count_posix_calls($document) >= 15
75 4 124 unless $inc->type eq 'use'
85 16 80 if (@elems == 1 and _elem_is_empty_list($elems[0]))
90 48 32 if (@args >= 1 and _arg_is_number($args[0]))
93 52 28 @args ? :
125 0 184 unless defined $aref
126 184 0 if (@$aref == 1)
128 84 100 if ($elem->isa('PPI::Structure::List'))
130 36 48 if (@children == 0)
133 48 0 if (@children == 1)
135 48 0 if ($elem->isa('PPI::Statement'))
137 48 0 if (@children)
183 34 56 unless $elem->isa('PPI::Structure::List')
185 16 40 if (@children == 0)
188 40 0 if (@children == 1)
190 40 0 if ($elem->isa('PPI::Statement'))
192 34 6 if (@children == 1)
210 0 72 unless @$aref == 1
228 44 164 if exists $posix_function{$_->content}
236 88 0 if $symbol =~ /^&/