Branch Coverage

blib/lib/PPI/Statement/Include.pm
Criterion Covered Total %
branch 60 76 78.9


line true false branch
72 0 426724 unless my $keyword = $self->schild(0)
73 426724 0 if $keyword->isa("PPI::Token::Word")
105 0 1278517 unless my $module = $self->schild(1)
106 1277233 1284 if $module->isa("PPI::Token::Word")
121 1 12 if ($argument and $argument->isa("PPI::Token::Operator"))
125 0 12 unless my $version = $self->schild(2)
126 3 9 unless $version->isa("PPI::Token::Number")
157 0 2 unless my $module = $self->module
158 2 0 $module =~ /^[a-z][a-z\d]*$/ ? :
182 0 213321 unless my $version = $self->schild(1)
183 230 213091 $version->isa('PPI::Token::Number') ? :
198 0 11 unless my $version = $self->schild(1)
199 10 1 $version->isa('PPI::Token::Number') ? :
222 58 2 if ($args[-1]->isa("PPI::Token::Structure") and $args[-1]->content eq ";")
233 2 58 unless @args
235 2 56 if ($args[0]->isa("PPI::Token::Number"))
236 1 1 unless my $after = $args[1]
237 1 0 unless $after->isa("PPI::Token::Operator")
261 96 213317 if $self->type eq "require"
263 7 213310 if (my $cb_features = $self->_custom_feature_include_cb->($self))
266 220 213090 if (my $perl_version = $self->version)
272 6 214 if "version"->parse($perl_version) >= "5.035"
279 14 213290 if ($on_or_off and my $custom = $self->_custom_feature_includes->{$self->module})
283 38 213252 if ($self->module eq 'feature') { }
4 213248 elsif ($self->module eq 'Mojolicious::Lite') { }
4 213244 elsif ($self->module eq 'Modern::Perl') { }
4 213240 elsif ($self->module eq 'experimental') { }
7 213233 elsif ($self->module eq 'Syntax::Keyword::Try') { }
285 35 2 $on_or_off ? :
289 4 0 $wants_signatures ? :
293 4 0 $v >= 2023 ? :
297 4 0 $wants_signatures ? :
300 7 0 $on_or_off ? :
317 5 47 if $arg->isa("PPI::Structure::List") or $arg->isa("PPI::Statement::Expression")
321 46 1 if $as_text
322 1 0 if $arg->isa("PPI::Token::Operator") or $arg->content eq ","
332 0 212234 unless my $document = $self->document
339 0 213317 unless my $document = $self->document