Branch Coverage

blib/lib/PPI/Statement/Include.pm
Criterion Covered Total %
branch 64 78 82.0


line true false branch
72 0 3322 unless my $keyword = $self->schild(0)
73 3322 0 if $keyword->isa("PPI::Token::Word")
105 2 3287 unless my $module = $self->schild(1)
106 3260 27 if $module->isa("PPI::Token::Word")
121 1 9 if ($argument and $argument->isa("PPI::Token::Operator"))
125 0 9 unless my $version = $self->schild(2)
126 3 6 unless $version->isa("PPI::Token::Number")
157 0 2 unless my $module = $self->module
158 2 0 $module =~ /^[a-z][a-z\d]*$/ ? :
182 2 3301 unless my $version = $self->schild(1)
183 40 3261 $version->isa('PPI::Token::Number') ? :
198 0 11 unless my $version = $self->schild(1)
199 10 1 $version->isa('PPI::Token::Number') ? :
222 21 1 if ($args[-1]->isa("PPI::Token::Structure") and $args[-1]->content eq ";")
233 2 20 unless @args
235 2 18 if ($args[0]->isa("PPI::Token::Number"))
236 1 1 unless my $after = $args[1]
237 1 0 unless $after->isa("PPI::Token::Operator")
262 22 3293 if $type eq "require"
264 1 3292 if (my $cb_features = $self->_custom_feature_include_cb->($self))
267 30 3262 if (my $perl_version = $self->version)
273 6 24 if "version"->parse($perl_version) >= "5.035"
277 29 3257 unless my $module = $self->module
282 2 3255 if ($on_or_off and my $custom = $self->_custom_feature_includes->{$module})
286 12 3243 if ($module eq 'feature') { }
1 3242 elsif ($module eq 'Mojolicious::Lite') { }
1 3241 elsif ($module eq 'Modern::Perl') { }
1 3240 elsif ($module eq 'experimental') { }
7 3233 elsif ($module eq 'Syntax::Keyword::Try') { }
288 11 1 $on_or_off ? :
292 1 0 $wants_signatures ? :
296 1 0 $v >= 2023 ? :
300 1 0 $wants_signatures ? :
303 7 0 $on_or_off ? :
320 2 16 if $arg->isa("PPI::Structure::List") or $arg->isa("PPI::Statement::Expression")
324 15 1 if $as_text
325 1 0 if $arg->isa("PPI::Token::Operator") or $arg->content eq ","
335 0 2244 unless my $document = $self->document
342 0 3293 unless my $document = $self->document