Branch Coverage

blib/lib/Perl/ToPerl6/Document.pm
Criterion Covered Total %
branch 0 108 0.0


line true false branch
28 0 0 if $function_name eq 'DESTROY'
79 0 0 if (@_ == 1) { }
95 0 0 ref $source_code ? :
0 0 _is_ppi_doc($source_code) ? :
103 0 0 unless (defined $ppi_document)
105 0 0 ref $source_code ? :
149 0 0 if (ref $wanted or not $wanted or not $wanted =~ / \A PPI:: /msx)
157 0 0 unless ($self->{'_elements_of'})
183 0 0 if (ref $wanted or not $wanted or not $wanted =~ / \A PPI:: /msx)
188 0 0 $result ? :
198 0 0 if (ref $wanted or not $wanted or not $wanted =~ / \A PPI:: /msx)
203 0 0 $result ? :
221 0 0 $subdocuments ? :
229 0 0 if (&blessed($element) and $element->isa('PPI::Element')) { }
232 0 0 if exists $self->{'_ppix_regexp_from_element'}{$addr}
247 0 0 unless $self->find('PPI::Statement::Include')
249 0 0 unless 're' eq $use_re->module
251 0 0 unless $self->element_is_in_lexical_scope_after_statement_containing($elem, $use_re)
254 0 0 'no' eq $use_re->type ? :
259 0 0 $_->isa('PPI::Token::QuoteLike::Words') ? :
0 0 $_->isa('PPI::Token::Quote') ? :
278 0 0 if $outer_elem->scope
287 0 0 unless my $stmt = $outer_elem->statement
289 0 0 unless my $last_elem = $stmt->last_element
292 0 0 unless my $stmt_loc = $last_elem->location
295 0 0 unless my $inner_loc = $inner_elem->location
298 0 0 if $stmt_loc->[0] > $inner_loc->[0]
300 0 0 if $stmt_loc->[0] == $inner_loc->[0] and $stmt_loc->[1] > $inner_loc->[1]
310 0 0 unless $parent = $parent->parent
326 0 0 if (defined $self->{'_filename_override'}) { }
331 0 0 $doc->can('filename') ? :
343 0 0 unless (exists $self->{'_highest_explicit_perl_version'})
346 0 0 if ($includes) { }
363 0 0 $a >= $b ? :
375 0 0 if $highest_explicit_perl_version
408 0 0 if $transformer_name eq 'Perl::ToPerl6::Transformer::Miscellanea::ProhibitUnrestrictedNoCritic'
411 0 0 unless $line
412 0 0 if $self->{'_disabled_line_map'}{$line}{$transformer_name}
413 0 0 if $self->{'_disabled_line_map'}{$line}{'ALL'}
426 0 0 $annotation->disables_all_transformers ? :
485 0 0 unless $element->isa('PPI::Statement::Include')
486 0 0 if $element->version
505 0 0 unless ($classes)
542 0 0 if ($first_stmnt =~ /$fixin_rx/)
557 0 0 if (defined $file_name and ref $args->{'-program-extensions'} eq 'ARRAY')
562 0 0 ref $ext eq 'Regexp' ? :
567 0 0 if $file_name =~ /$regex/msx
571 0 0 if shebang_line($self)
572 0 0 if defined $file_name and $file_name =~ / [.] PL \z /msx
584 0 0 if $nodes
587 0 0 unless ($ppi_document)
613 0 0 if $mapping
616 0 0 unless ($includes)
622 0 0 unless $_->module