Branch Coverage

blib/lib/PLS/Server/Response/Completion.pm
Criterion Covered Total %
branch 0 84 0.0


line true false branch
38 0 0 if ref $document ne "PLS::Parser::Document"
42 0 0 if ref $range ne "HASH"
48 0 0 if length $package
55 0 0 if ($filter =~ /^[\$\@\%]/) { }
63 0 0 unless ($arrow)
69 0 0 if ($package)
74 0 0 if ($filter)
94 0 0 if length $result->{'insertText'}
96 0 0 if exists $result->{'detail'} and length $result->{'detail'} and $unique_by_detail{$result->{'detail'}}++
101 0 0 unless ($arrow or $package or $filter =~ /^\%\@/)
113 0 0 if scalar @keywords
121 0 0 if $sub =~ /\s+/
122 0 0 if $seen_keywords{$sub}++
131 0 0 if $seen_keywords{$keyword}++
143 0 0 if scalar @ext_modules
157 0 0 unless length $path
170 0 0 unless length $package
176 0 0 if ref $functions ne "HASH"
178 0 0 $arrow ? :
193 0 0 if ($arrow) { }
202 0 0 if ($arrow) { }
204 0 0 if (length $filter) { }
232 0 0 if ref $imports ne "ARRAY" or not scalar @{$imports;}
251 0 0 if $PLS::Server::State::CLIENT_CAPABILITIES->{'textDocument'}{'completion'}{'completionItem'}{'labelDetailsSupport'}
268 0 0 if $sub =~ /\n/
270 0 0 if length $this_document_package
281 0 0 if (length $data->{'package'})
293 0 0 if (exists $subroutines{$sub}{'data'} and ref $subroutines{$sub}{'data'} eq "ARRAY" and scalar @{$subroutines{$sub}{'data'};} == 1)
316 0 0 if $pack =~ /\n/
320 0 0 if (ref $document->{'index'} eq "PLS::Parser::Index")
337 0 0 if $seen_constants{$constant}++
338 0 0 if $constant =~ /\n/
354 0 0 unless (scalar @builtin_variables)
358 0 0 if (open my $fh, "-|", $perldoc, "-Tu", "perlvar")
362 0 0 if ($line =~ /=item\s*(C<)?([\$\@\%]\S+)\s*/)
366 0 0 if length $1
369 0 0 if $variable =~ /^\$</ and $variable ne "\$<"
380 0 0 if $seen_variables{$variable}++
381 0 0 if $variable =~ /\n/
389 0 0 if ($variable =~ /^[\@\%]/)
392 0 0 $variable =~ /^\@/ ? :
410 0 0 if scalar @snippets