Branch Coverage

blib/lib/PLS/Server/Response/Completion.pm
Criterion Covered Total %
branch 0 72 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 =~ /^[\$\@\%]/) { }
64 0 0 unless ($arrow)
70 0 0 if (length $package)
77 0 0 if ($filter)
82 0 0 unless $arrow
99 0 0 if length $result->{'insertText'}
101 0 0 if exists $result->{'detail'} and length $result->{'detail'} and $unique_by_detail{$result->{'detail'}}++
106 0 0 unless ($arrow or $package or $filter =~ /^\%\@/)
118 0 0 if scalar @keywords
126 0 0 if $sub =~ /\s+/
127 0 0 if $seen_keywords{$sub}++
136 0 0 if $seen_keywords{$keyword}++
147 0 0 unless length $package
153 0 0 if ref $functions ne "HASH"
155 0 0 $arrow ? :
164 0 0 $arrow ? :
172 0 0 if ($arrow) { }
181 0 0 if ($arrow) { }
204 0 0 if ref $imports ne "ARRAY" or not scalar @{$imports;}
223 0 0 if $PLS::Server::State::CLIENT_CAPABILITIES->{'textDocument'}{'completion'}{'completionItem'}{'labelDetailsSupport'}
240 0 0 if $sub =~ /\n/
242 0 0 if length $this_document_package
253 0 0 if (length $data->{'package'})
265 0 0 if (exists $subroutines{$sub}{'data'} and ref $subroutines{$sub}{'data'} eq "ARRAY" and scalar @{$subroutines{$sub}{'data'};} == 1)
288 0 0 if $pack =~ /\n/
292 0 0 if (ref $document->{'index'} eq "PLS::Parser::Index")
309 0 0 if $seen_constants{$constant}++
310 0 0 if $constant =~ /\n/
326 0 0 if $seen_variables{$variable}++
327 0 0 if $variable =~ /\n/
335 0 0 if ($variable =~ /^[\@\%]/)
338 0 0 $variable =~ /^\@/ ? :
356 0 0 if scalar @snippets