Branch Coverage

blib/lib/App/Midgen/Role/UseModule.pm
Criterion Covered Total %
branch 0 110 0.0


line true false branch
30 0 0 if $self->_is_module_runtime eq 0
60 0 0 unless ($chunk->find(sub { $_[1]->isa('PPI::Token::Symbol'); } ))
63 0 0 if ($chunk->find(sub { $_[1]->content =~ /\A[Module::Runtime::]*(?:use_module|use_package_optimistically|require_module)\z/ if $_[1]->isa('PPI::Token::Word'); } ))
66 0 0 if $_[1]->isa('PPI::Token::Word')
73 0 0 unless ($chunk->find(sub { $_[1]->content =~ /\A(?:return)\z/ if $_[1]->isa('PPI::Token::Word'); } ))
76 0 0 if $_[1]->isa('PPI::Token::Word')
86 0 0 if ($chunk->{'children'}[$_]->isa('PPI::Structure::List'))
89 0 0 if $chunk->{'children'}[$_]->isa('PPI::Structure::List')
91 0 0 if $self->debug
139 0 0 if ($chunk->find(sub { $_[1]->content =~ /\A(?:my)\z/ if $_[1]->isa('PPI::Token::Word'); } ))
142 0 0 if $_[1]->isa('PPI::Token::Word')
149 0 0 if ($chunk->find(sub { $_[1]->content =~ /\A[Module::Runtime::]*(?:use_module|use_package_optimistically)\z/ if $_[1]->isa('PPI::Token::Word'); } ))
152 0 0 if $_[1]->isa('PPI::Token::Word')
162 0 0 if ($chunk->{'children'}[$_]->isa('PPI::Structure::List'))
165 0 0 if $chunk->{'children'}[$_]->isa('PPI::Structure::List')
167 0 0 if $self->debug
213 0 0 unless ($chunk->find(sub { $_[1]->content =~ /\A(?:my)\z/ if $_[1]->isa('PPI::Token::Word'); } ))
216 0 0 if $_[1]->isa('PPI::Token::Word')
223 0 0 if ($chunk->find(sub { $_[1]->isa('PPI::Token::Symbol'); } ))
225 0 0 if ($chunk->find(sub { $_[1]->content eq '=' if $_[1]->isa('PPI::Token::Operator'); } ))
228 0 0 if $_[1]->isa('PPI::Token::Operator')
235 0 0 if ($chunk->find(sub { $_[1]->content =~ /\A[Module::Runtime::]*(?:use_module|use_package_optimistically)\z/ if $_[1]->isa('PPI::Token::Word'); } ))
238 0 0 if $_[1]->isa('PPI::Token::Word')
248 0 0 if ($chunk->{'children'}[$_]->isa('PPI::Structure::List'))
251 0 0 if $chunk->{'children'}[$_]->isa('PPI::Structure::List')
253 0 0 if $self->debug
322 0 0 if ($chunk->find(sub { $_[1]->content =~ /\A(?:return)\z/ if $_[1]->isa('PPI::Token::Word'); } ))
325 0 0 if $_[1]->isa('PPI::Token::Word')
332 0 0 if ($chunk->find(sub { $_[1]->content =~ /\A[Module::Runtime::]*(?:use_module|use_package_optimistically)\z/ if $_[1]->isa('PPI::Token::Word'); } ))
335 0 0 if $_[1]->isa('PPI::Token::Word')
345 0 0 if ($chunk->{'children'}[$_]->isa('PPI::Structure::List'))
347 0 0 if $chunk->{'children'}[$_]->isa('PPI::Structure::List')
348 0 0 if $self->debug
362 0 0 defined $_ ? :
363 0 0 if $self->debug
364 0 0 if $self->debug
365 0 0 if (scalar @modules > 0)
368 0 0 if $self->verbose == 2
398 0 0 if ($includes)
400 0 0 if $include->type eq 'no'
401 0 0 unless ($include->pragma)
404 0 0 if ($module eq 'Module::Runtime')
406 0 0 if $self->debug
412 0 0 if $self->debug
425 0 0 if ($ppi_sl->isa('PPI::Structure::List'))
431 0 0 if ($ppi_se->{'children'}[$_]->isa('PPI::Token::Quote::Single') or $ppi_se->{'children'}[$_]->isa('PPI::Token::Quote::Double'))
436 0 0 if ($module =~ /\A(?:[a-zA-Z])/)
437 0 0 if $self->debug
440 0 0 if $self->debug
444 0 0 if ($ppi_se->{'children'}[$_]->isa('PPI::Token::Number::Float') or $ppi_se->{'children'}[$_]->isa('PPI::Token::Number::Version') or $ppi_se->{'children'}[$_]->isa('PPI::Token::Quote::Single') or $ppi_se->{'children'}[$_]->isa('PPI::Token::Quote::Double'))
451 0 0 unless $version_string =~ /\A[\d|v]/
453 0 0 version::is_lax($version_string) ? :
456 0 0 if $self->debug
460 0 0 if ($previous_module)
464 0 0 if $self->debug