blib/lib/DDC/PP/CQCount.pm

filter: Statementstmt 74.3% 119 / 160 Branchbran 3.5% 1 / 28 Conditioncond 23.5% 16 / 68 MC/DCmcdc 8.3% 3 / 36 Subroutinesub 55.1% 32 / 58 Podpod 0.0% 0 / 6 totaltotal 48.0% 171 / 356 CC 43 SCAR 29.4
CC
43
Cov
53%
countOptionsToString
110.0
toString
56.0
GetMatchId
20.0
CRAP 18.9
« blib/lib/DDC/Hit.pm ↑ Summary blib/lib/DDC/Any.pm »
1 ##-*- Mode: CPerl -*-
2  
3 ##======================================================================
4 ## top-level
5 package DDC::PP::CQCount;
6 20 ▶use DDC::PP::Constants;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 20 ▶use DDC::PP::CQuery;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 20 ▶use Carp qw(carp confess);
Subroutine BEGIN: called CC=1 SCAR=0.0
9 20 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 ##======================================================================
12 ## CQCountKeyExpr
13 package DDC::PP::CQCountKeyExpr;
14 20 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 20 our @ISA = qw(DDC::PP::CQuery);
16  
17 4 ▶sub CanCountByFile { return 1; }
Subroutine CanCountByFile: called CC=1 SCAR=0.0
18  
19 ##======================================================================
20 ## CQCountKeyExprConstant
21 package DDC::PP::CQCountKeyExprConstant;
22 20 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
23 20 our @ISA = qw(DDC::PP::CQCountKeyExpr);
24  
25 2 ▶sub defaultLabel { return '*'; }
Subroutine defaultLabel: called CC=1 SCAR=0.0
26 2 ▶sub new {
Subroutine new: called CC=2 SCAR=8.1
27 2 my ($that,$label,%opts) = @_;
28 2 ▶ return $that->SUPER::new(($label||$that->defaultLabel),%opts);
Condition33%1/3
$label || $that->defaultLabel
l!l&&r!l&&!r
020
MC/DC0%0/2
$label || $that->defaultLabel
$label $that->defaultLabel
Truth table33%1/3
A || B
A= $labelB= $that->defaultLabel
ABresult
1X1
011
000
29 }
30  
31 0 ▶sub toString { return '@'.$_[0]->sqString($_[0]{Label}); }
Subroutine toString: not called CC=1 SCAR=6.9
32  
33 ##======================================================================
34 ## CQCountKeyExprMeta
35 package DDC::PP::CQCountKeyExprMeta;
36 20 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
37 20 our @ISA = qw(DDC::PP::CQCountKeyExpr);
38  
39 ##======================================================================
40 ## CQCountKeyExprFileId
41 package DDC::PP::CQCountKeyExprFileId;
42 20 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
43 20 our @ISA = qw(DDC::PP::CQCountKeyExprMeta);
44  
45 0 ▶sub defaultLabel { return 'fileid'; }
Subroutine defaultLabel: not called CC=1 SCAR=6.9
46  
47 ##======================================================================
48 ## CQCountKeyExprIndexed
49 package DDC::PP::CQCountKeyExprIndexed;
50 20 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
51 20 our @ISA = qw(DDC::PP::CQCountKeyExprMeta);
52  
53 0 ▶sub defaultLabel { return 'file'; }
Subroutine defaultLabel: not called CC=1 SCAR=6.9
54  
55 ##======================================================================
56 ## CQCountKeyExprFileName
57 package DDC::PP::CQCountKeyExprFileName;
58 20 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
59 20 our @ISA = qw(DDC::PP::CQCountKeyExprIndexed);
60  
61 0 ▶sub defaultLabel { return 'filename'; }
Subroutine defaultLabel: not called CC=1 SCAR=6.9
62  
63 ##======================================================================
64 ## CQCountKeyExprDate
65 package DDC::PP::CQCountKeyExprDate;
66 20 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
67 20 our @ISA = qw(DDC::PP::CQCountKeyExprIndexed);
68  
69 0 ▶sub defaultLabel { return 'date'; }
Subroutine defaultLabel: not called CC=1 SCAR=6.9
70  
71 ##======================================================================
72 ## CQCountKeyExprDateSlice
73 package DDC::PP::CQCountKeyExprDateSlice;
74 20 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
75 20 our @ISA = qw(DDC::PP::CQCountKeyExprDate);
76  
77 20 __PACKAGE__->defprop('Slice');
78 2 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
79 2 my ($that,$label,$slice,%opts) = @_;
80 2 return $that->SUPER::new($label,Slice=>$slice,%opts); ##-- lower-case 'slice' in DDC, should be ok
81 }
82  
83 0 ▶sub toString { return $_[0]->sqString($_[0]{Label}).'/'.($_[0]{Slice}||1); }
Subroutine toString: not called CC=2 SCAR=17.9
Condition0%0/2
$_[0]{'Slice'} || 1
l!l
00
MC/DC0%0/1
$_[0]{'Slice'} || 1
$_[0]{'Slice'}
Truth table0%0/2
A
A= $_[0]{'Slice'}
Aresult
11
00
84  
85 ##======================================================================
86 ## CQCountKeyExprBibl
87 package DDC::PP::CQCountKeyExprBibl;
88 20 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
89 20 our @ISA = qw(DDC::PP::CQCountKeyExprIndexed);
90  
91 0 ▶sub defaultLabel { return ''; }
Subroutine defaultLabel: not called CC=1 SCAR=6.9
92 14 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
93 14 my ($that,$attr,%opts) = @_;
94 14 return $that->SUPER::new($attr,%opts);
95 }
96  
97 0 ▶sub toString { return $_[0]->sqString($_[0]{Label}); }
Subroutine toString: not called CC=1 SCAR=6.9
98  
99 ##======================================================================
100 ## CQCountKeyExprRegex
101 package DDC::PP::CQCountKeyExprRegex;
102 20 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
103 20 our @ISA = qw(DDC::PP::CQCountKeyExprIndexed);
104  
105 20 __PACKAGE__->defprop('Src');
106 20 __PACKAGE__->defprop('Pattern');
107 20 __PACKAGE__->defprop('Replacement');
108 20 __PACKAGE__->defprop('Modifiers');
109 20 __PACKAGE__->defprop('isGlobal');
110 0 ▶sub defaultLabel { return 'regex'; }
Subroutine defaultLabel: not called CC=1 SCAR=6.9
111 2 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
112 2 my ($that,$src,$pat,$repl,$mods,%opts) = @_;
113 2 return $that->SUPER::new(undef,Src=>$src,Pattern=>$pat,Replacement=>$repl,Modifiers=>$mods,IsGlobal=>0,%opts);
114 }
115  
116 0 ▶sub Children { [grep {defined($_)} $_[0]{Src}]; }
Subroutine Children: not called CC=1 SCAR=6.9
117  
118 0 ▶sub Clear { delete $_[0]{Src}; }
Subroutine Clear: not called CC=1 SCAR=6.9
119 0 ▶sub toString {
Subroutine toString: not called CC=1 SCAR=6.9
120 0 return '(' . $_[0]{Src}->toString . " ~ s/$_[0]{Pattern}/$_[0]{Replacement}/$_[0]{Modifiers})";
121 }
122  
123 ##======================================================================
124 ## CQCountKeyExprToken
125 package DDC::PP::CQCountKeyExprToken;
126 20 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
127 20 our @ISA = qw(DDC::PP::CQCountKeyExprIndexed);
128  
129 20 __PACKAGE__->defprop('IndexName');
130 20 __PACKAGE__->defprop('MatchId');
131 20 __PACKAGE__->defprop('Offset');
132 0 ▶sub defaultLabel { return 'token'; }
Subroutine defaultLabel: not called CC=1 SCAR=6.9
133 18 ▶sub new {
Subroutine new: called CC=4 SCAR=13.9
134 18 my ($that,$index,$matchid,$offset,%opts) = @_;
135 18 ▶ return $that->SUPER::new(undef,IndexName=>($index||"Token"),MatchId=>($matchid||0),Offset=>($offset||0),%opts);
Condition83%5/6
$index || 'Token'
l!l
180
$matchid || 0
l!l
108
$offset || 0
l!l
162
MC/DC0%0/1
$index || 'Token'
$index
MC/DC100%1/1
$matchid || 0
$matchid
MC/DC100%1/1
$offset || 0
$offset
Truth table50%1/2
A
A= $index
Aresult
11
00
Truth table100%2/2
A
A= $matchid
Aresult
11
00
Truth table100%2/2
A
A= $offset
Aresult
11
00
136 }
137  
138 2 ▶sub CanCountByFile { return 0; }
Subroutine CanCountByFile: called CC=1 SCAR=0.0
139 20 *GetMatchId = \&getMatchId;
140 20 *SetMatchId = \&setMatchId;
141  
142 0 ▶sub toString {
Subroutine toString: not called CC=3 SCAR=24.8
143 return ('$'
144 .$_[0]{IndexName}
145 .($_[0]{MatchId} ? sprintf(" =%hhu", $_[0]{MatchId}) : '')
146 0 ▶ .($_[0]{Offset} ? sprintf(" %+d", $_[0]{Offset}) : '')
Branch: 2 branches
BranchTrueFalseTotal
$_[0]{'MatchId'} ? : 0 0 0
$_[0]{'Offset'} ? : 0 0 0
147 );
148 }
149  
150 ##======================================================================
151 ## CQCountKeyExprList
152 package DDC::PP::CQCountKeyExprList;
153 20 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
154 20 our @ISA = qw(DDC::PP::CQCountKeyExpr);
155  
156 20 __PACKAGE__->defprop('Exprs');
157 0 ▶sub defaultLabel { return 'list'; }
Subroutine defaultLabel: not called CC=1 SCAR=6.9
158 32 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
159 32 my $that = shift;
160 32 return $that->SUPER::new(undef,Exprs=>[],@_);
161 }
162  
163  
164 0 ▶sub Clear { @{$_[0]{Exprs}} = qw(); }
Subroutine Clear: not called CC=1 SCAR=6.9
165 0 ▶sub empty { return !$_[0]{Exprs} || !@{$_[0]{Exprs}}; }
Subroutine empty: not called CC=2 SCAR=17.9
Condition0%0/3
$_[0]{'Exprs'} && @{$_[0]{'Exprs'};}
!ll&&!rl&&r
000
MC/DC0%0/2
$_[0]{'Exprs'} && @{$_[0]{'Exprs'};}
$_[0]{'Exprs'} @{$_[0]{'Exprs'};}
Truth table0%0/3
A && B
A= $_[0]{'Exprs'}B= @{$_[0]{'Exprs'};}
ABresult
0X0
100
111
166 8 ▶sub PushKey { push(@{$_[0]{Exprs}},$_[1]); }
Subroutine PushKey: called CC=1 SCAR=0.0
167  
168 4 ▶sub CanCountByFile { return !grep {$_ && !$_->CanCountByFile} @{$_[0]{Exprs}||[]}; }
Subroutine CanCountByFile: called CC=3 SCAR=11.4
Condition60%3/5
$_ && !$_->CanCountByFile
!ll&&!rl&&r
042
$_[0]{'Exprs'} || []
l!l
40
MC/DC50%1/2
$_ && !$_->CanCountByFile
$_ !$_->CanCountByFile
MC/DC0%0/1
$_[0]{'Exprs'} || []
$_[0]{'Exprs'}
Truth table66%2/3
A && not(B)
A= $_B= !$_->CanCountByFile
ABresult
0X0
100
111
Truth table50%1/2
A
A= $_[0]{'Exprs'}
Aresult
11
00
169 2 ▶sub GetMatchId {
Subroutine GetMatchId: called CC=5 SCAR=19.2
170 2 my ($id);
171 2 ▶ foreach (@{$_[0]{Exprs}||[]}) {
Condition50%1/2
$_[0]{'Exprs'} || []
l!l
20
MC/DC0%0/1
$_[0]{'Exprs'} || []
$_[0]{'Exprs'}
Truth table50%1/2
A
A= $_[0]{'Exprs'}
Aresult
11
00
172 2 ▶ return $id if ($_ && ($id=$_->GetMatchId));
Branch: 1 branch
BranchTrueFalseTotal
if $_ and $id = $_->GetMatchId 2 0 2
Condition33%1/3
$_ and $id = $_->GetMatchId
!ll&&!rl&&r
002
MC/DC0%0/2
$_ and $id = $_->GetMatchId
$_ $id = $_->GetMatchId
Truth table33%1/3
A and B
A= $_B= $id = $_->GetMatchId
ABresult
0X0
100
111
173 }
174 0 return 0;
175 }
176 #sub SetMatchId ##-- not implemented
177  
178 0 ▶sub Children { return $_[0]{Exprs} || []; }
Subroutine Children: not called CC=2 SCAR=17.9
Condition0%0/2
$_[0]{'Exprs'} || []
l!l
00
MC/DC0%0/1
$_[0]{'Exprs'} || []
$_[0]{'Exprs'}
Truth table0%0/2
A
A= $_[0]{'Exprs'}
Aresult
11
00
179  
180 0 ▶sub toString {
Subroutine toString: not called CC=2 SCAR=17.9
181 0 ▶ return join(',', map {$_->toString} @{$_[0]{Exprs}||[]});
Condition0%0/2
$_[0]{'Exprs'} || []
l!l
00
MC/DC0%0/1
$_[0]{'Exprs'} || []
$_[0]{'Exprs'}
Truth table0%0/2
A
A= $_[0]{'Exprs'}
Aresult
11
00
182 }
183  
184 ##======================================================================
185 ## CQCount
186 package DDC::PP::CQCount;
187 20 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
188 20 our @ISA = qw(DDC::PP::CQuery);
189  
190 20 __PACKAGE__->defprop('Dtr');
191 20 __PACKAGE__->defprop('Sample');
192 20 __PACKAGE__->defprop('Sort');
193 20 __PACKAGE__->defprop('Lo');
194 20 __PACKAGE__->defprop('Hi');
195 20 __PACKAGE__->defprop('Keys');
196 28 ▶sub new {
Subroutine new: called CC=3 SCAR=13.1
Pod undocumented
197 28 my ($that,$dtr,$keys,$samp,$sort,$lo,$hi,%opts) = @_;
198 28 ▶ return $that->SUPER::new('COUNT',Dtr=>$dtr,Keys=>$keys,Sample=>($samp||-1),Sort=>($sort||DDC::PP::NoSort),Lo=>$lo,Hi=>$hi,%opts);
Condition40%2/5
$samp || -1
l!l
028
$sort || DDC::PP::NoSort()
l!l&&r!l&&!r
0028
MC/DC0%0/1
$samp || -1
$samp
MC/DC0%0/2
$sort || DDC::PP::NoSort()
$sort DDC::PP::NoSort()
Truth table50%1/2
A
A= $samp
Aresult
11
00
Truth table33%1/3
A || B
A= $sortB= DDC::PP::NoSort()
ABresult
1X1
011
000
199 }
200  
201 0 ▶sub Children { [grep {defined($_)} @{$_[0]}{qw(Dtr Keys)}]; }
Subroutine Children: not called CC=1 SCAR=6.9
Pod undocumented
202  
203 0 ▶sub Clear { delete @{$_[0]}{qw(Dtr Keys)}; }
Subroutine Clear: not called CC=1 SCAR=6.9
Pod undocumented
204 2 ▶sub GetMatchId {
Subroutine GetMatchId: called CC=5 SCAR=25.2
Pod undocumented
205 return (($_[0]{Keys} && $_[0]{Keys}->GetMatchId)
206 || ($_[0]{Dtr} && $_[0]{Dtr}->GetMatchId)
207 2 ▶ || 0);
Condition27%3/11
$_[0]{'Keys'} && $_[0]{'Keys'}->GetMatchId || $_[0]{'Dtr'} && $_[0]{'Dtr'}->GetMatchId || 0
l!l
20
$_[0]{"Keys"} and $_[0]{"Keys"}->GetMatchId or $_[0]{"Dtr"} and $_[0]{"Dtr"}->GetMatchId
l!l&&r!l&&!r
200
$_[0]{"Keys"} and $_[0]{"Keys"}->GetMatchId
!ll&&!rl&&r
002
$_[0]{"Dtr"} and $_[0]{"Dtr"}->GetMatchId
!ll&&!rl&&r
000
MC/DC0%0/4
$_[0]{'Keys'} && $_[0]{'Keys'}->GetMatchId || $_[0]{'Dtr'} && $_[0]{'Dtr'}->GetMatchId || 0
$_[0]{"Keys"} $_[0]{"Keys"}->GetMatchId $_[0]{"Dtr"} $_[0]{"Dtr"}->GetMatchId
Truth table14%1/7
A and B or C and D
A= $_[0]{"Keys"}B= $_[0]{"Keys"}->GetMatchIdC= $_[0]{"Dtr"}D= $_[0]{"Dtr"}->GetMatchId
ABCDresult
11XX1
0X111
10111
0X0X0
0X100
100X0
10100
208 }
209  
210 0 ▶sub toString {
Subroutine toString: not called CC=1 SCAR=6.9
Pod undocumented
211 0 return "COUNT(" . $_[0]{Dtr}->toString . $_[0]{Dtr}->optionsToString .")". $_[0]->countOptionsToString;
212 }
213 0 ▶sub countOptionsToString {
Subroutine countOptionsToString: not called CC=10 SCAR=47.0
Pod undocumented
214 0 my $obj = shift;
215 return (
216 ($obj->{Keys} && !$obj->{Keys}->empty ? (" #BY[".$obj->{Keys}->toString."]") : '')
217 .($obj->{Sample} && $obj->{Sample} > 0 ? " #SAMPLE $obj->{Sample}" : '')
218 .($obj->{Sort} != $DDC::PP::HitSortEnum{NoSort}
219 ? (" #".uc($DDC::PP::HitSortEnumStrings[$obj->{Sort}])
220 .($obj->{Lo} || $obj->{Hi}
221 ? ("[".($obj->{Lo} ? $obj->sqString($obj->{Lo}) : '')
222 0 ▶ .",".($obj->{Hi} ? $obj->sqString($obj->{Hi}) : '')
Branch: 6 branches
BranchTrueFalseTotal
$obj->{'Keys'} && !$obj->{'Keys'}->empty ? : 0 0 0
$obj->{'Sample'} && $obj->{'Sample'} > 0 ? : 0 0 0
$obj->{'Sort'} != $DDC::PP::HitSortEnum{'NoSort'} ? : 0 0 0
$obj->{'Lo'} || $obj->{'Hi'} ? : 0 0 0
$obj->{'Lo'} ? : 0 0 0
$obj->{'Hi'} ? : 0 0 0
Condition0%0/9
$obj->{"Keys"} and not $obj->{"Keys"}->empty
!ll&&!rl&&r
000
$obj->{"Sample"} and $obj->{"Sample"} > 0
!ll&&!rl&&r
000
$obj->{"Lo"} or $obj->{"Hi"}
l!l&&r!l&&!r
000
MC/DC0%0/2
$obj->{"Keys"} and not $obj->{"Keys"}->empty
$obj->{"Keys"} not $obj->{"Keys"}->empty
MC/DC0%0/2
$obj->{"Sample"} and $obj->{"Sample"} > 0
$obj->{"Sample"} $obj->{"Sample"} > 0
MC/DC0%0/2
$obj->{"Lo"} or $obj->{"Hi"}
$obj->{"Lo"} $obj->{"Hi"}
Truth table0%0/3
A and not(B)
A= $obj->{"Keys"}B= not $obj->{"Keys"}->empty
ABresult
0X0
100
111
Truth table0%0/3
A and B
A= $obj->{"Sample"}B= $obj->{"Sample"} > 0
ABresult
0X0
100
111
Truth table0%0/3
A or B
A= $obj->{"Lo"}B= $obj->{"Hi"}
ABresult
1X1
011
000
223 ."]")
224 : '')
225 )
226 : '')
227 );
228 }
229  
230 ##======================================================================
231 ## CQKeys
232 package DDC::PP::CQKeys;
233 20 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
234 20 our @ISA = qw(DDC::PP::CQuery);
235  
236 20 __PACKAGE__->defprop('QCount');
237 20 __PACKAGE__->defprop('CountLimit');
238 20 __PACKAGE__->defprop('IndexNames');
239 20 __PACKAGE__->defprop('MatchId');
240 0 ▶sub new {
Subroutine new: not called CC=3 SCAR=24.8
241 0 my ($that,$qcount,$climit,$ixnames,%opts) = @_;
242 0 ▶ return $that->SUPER::new('KEYS',QCount=>$qcount,CountLimit=>($climit||-1),IndexNames=>($ixnames||[]),%opts);
Condition0%0/4
$climit || -1
l!l
00
$ixnames || []
l!l
00
MC/DC0%0/1
$climit || -1
$climit
MC/DC0%0/1
$ixnames || []
$ixnames
Truth table0%0/2
A
A= $climit
Aresult
11
00
Truth table0%0/2
A
A= $ixnames
Aresult
11
00
243 }
244  
245 0 ▶sub GetMatchId {
Subroutine GetMatchId: not called CC=4 SCAR=30.0
246 return ($_[0]{MatchId}
247 || ($_[0]{QCount} && $_[0]{QCount}->GetMatchId)
248 0 ▶ || 0);
Condition0%0/8
$_[0]{'MatchId'} || $_[0]{'QCount'} && $_[0]{'QCount'}->GetMatchId || 0
l!l
00
$_[0]{"MatchId"} or $_[0]{"QCount"} and $_[0]{"QCount"}->GetMatchId
l!l&&r!l&&!r
000
$_[0]{"QCount"} and $_[0]{"QCount"}->GetMatchId
!ll&&!rl&&r
000
MC/DC0%0/3
$_[0]{'MatchId'} || $_[0]{'QCount'} && $_[0]{'QCount'}->GetMatchId || 0
$_[0]{"MatchId"} $_[0]{"QCount"} $_[0]{"QCount"}->GetMatchId
Truth table0%0/4
A or B and C
A= $_[0]{"MatchId"}B= $_[0]{"QCount"}C= $_[0]{"QCount"}->GetMatchId
ABCresult
1XX1
0111
00X0
0100
249 }
250 20 *SetMatchId = \&setMatchId;
251  
252 0 ▶sub toString {
Subroutine toString: not called CC=7 SCAR=40.3
253 0 my $obj = shift;
254 return (
255 0 ($obj->{IndexNames} && @{$obj->{IndexNames}}
256 0 ▶ ? ('$('.join(',', map {$obj->sqString($_)} @{$obj->{IndexNames}}).')=')
Branch: 4 branches
BranchTrueFalseTotal
$obj->{'QCount'} ? : 0 0 0
$obj->{'QCount'}{'Dtr'} ? : 0 0 0
$obj->{'CountLimit'} > 0 ? : 0 0 0
$obj->{'MatchId'} ? : 0 0 0
257 : '')
258 .'KEYS('
259 .($obj->{QCount}
260 ? (($obj->{QCount}{Dtr} ? ($obj->{QCount}{Dtr}->toString.$obj->{QCount}{Dtr}->optionsToString) : '')
261 .$obj->{QCount}->countOptionsToString)
262 : '')
263 .($obj->{CountLimit} > 0 ? " #CLIMIT $obj->{CountLimit}" : '')
264 .')'
265 0 ▶ .($obj->{MatchId} ? " =$obj->{MatchId}" : '')
Branch: 1 branch
BranchTrueFalseTotal
$obj->{'IndexNames'} && @{$obj->{'IndexNames'};} ? : 0 0 0
Condition0%0/3
$obj->{"IndexNames"} and @{$obj->{"IndexNames"};}
!ll&&!rl&&r
000
MC/DC0%0/2
$obj->{"IndexNames"} and @{$obj->{"IndexNames"};}
$obj->{"IndexNames"} @{$obj->{"IndexNames"};}
Truth table0%0/3
A and B
A= $obj->{"IndexNames"}B= @{$obj->{"IndexNames"};}
ABresult
0X0
100
111
266 );
267 }
268  
269  
270  
271 20 1; ##-- be happy
272  
273 =pod
274  
275 =head1 NAME
276  
277 DDC::PP::CQCount - pure-perl implementation of DDC::XS::CQCount
278  
279 =head1 SYNOPSIS
280  
281 use DDC::PP::CQCount;
282 #... stuff happens ...
283  
284  
285 =head1 DESCRIPTION
286  
287 The DDC::PP::CQCount class is a pure-perl fork of the L<DDC::XS::CQCount|DDC::XS::CQCount> class,
288 which see for details.
289  
290 =head1 SEE ALSO
291  
292 perl(1),
293 DDC::PP(3perl),
294 DDC::XS::CQCount(3perl).
295  
296 =head1 AUTHOR
297  
298 Bryan Jurish E<lt>moocow@cpan.orgE<gt>
299  
300 =head1 COPYRIGHT AND LICENSE
301  
302 Copyright (C) 2016 by Bryan Jurish
303  
304 This library is free software; you can redistribute it and/or modify
305 it under the same terms as Perl itself, either Perl version 5.14.2 or,
306 at your option, any later version of Perl 5 you may have available.
307  
308 =cut
309  
« blib/lib/DDC/Hit.pm ↑ Summary blib/lib/DDC/Any.pm »