Branch Coverage

blib/lib/PPIx/EditorTools/IntroduceTemporaryVariable.pm
Criterion Covered Total %
branch 20 26 76.9


line true false branch
81 0 4 unless my $start_loc = $args{'start_location'}
82 0 4 unless my $end_loc = $args{'end_location'}
84 1 3 unless defined $varname
85 1 3 unless $varname =~ /^[\$\@\%]/
92 0 4 unless $token
95 0 4 unless $statement
105 0 6 unless defined $parent
106 6 0 if ($parent eq $statement)
109 1 5 if not $parent or $parent->isa('PPI::Structure::Block') or $parent->isa('PPI::Structure::Document')
114 3 2 unless $parent and $parent->isa('PPI::Statement')
128 4 1 if $line_num == $$end_loc[0]
129 4 1 if $line_num == $$start_loc[0]
138 3 1 if $code[$$location_for_insert[0] - 1] =~ /^(\s+)/