blib/lib/Cassandra/Client/ResultSet.pm

filter: Statementstmt 57.8% 11 / 19 Branchbran n/a Conditioncond 0.0% 0 / 6 MC/DCmcdc 0.0% 0 / 4 Subroutinesub 37.5% 3 / 8 Podpod 80.0% 4 / 5 totaltotal 42.8% 18 / 42 CC 3 SCAR 11.9
CC
3
Cov
44%
rows
6.0
row_hashes
6.0
new
2.0
CRAP 3.3
« blib/lib/Cassandra/Client/Util.pm ↑ Summary blib/lib/Cassandra/Client/TLSHandling.pm »
1 package Cassandra::Client::ResultSet;
2 13 our $AUTHORITY = 'cpan:TVDW';
3 13 $Cassandra::Client::ResultSet::VERSION = '0.21';
4 13 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 13 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 13 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8  
9 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
10 0 my ($class, $raw_data, $decoder, $next_page)= @_;
11  
12 0 return bless {
13 raw_data => $raw_data,
14 decoder => $decoder,
15 next_page => $next_page,
16 }, $class;
17 }
18  
19  
20 0 ▶sub rows {
Subroutine rows: not called CC=2 SCAR=17.9
Pod documented
21 0 ▶ return $_[0]{rows} ||= $_[0]{decoder}->decode(${$_[0]{raw_data}}, 0);
Condition0%0/3
$_[0]{"rows"} ||= $_[0]{"decoder"}->decode(${$_[0]{"raw_data"};}, 0)
l!l&&r!l&&!r
000
MC/DC0%0/2
$_[0]{"rows"} ||= $_[0]{"decoder"}->decode(${$_[0]{"raw_data"};}, 0)
$_[0]{"rows"} $_[0]{"decoder"}->decode(${$_[0]{"raw_data"};}, 0)
Truth table0%0/3
A ||= B
A= $_[0]{"rows"}B= $_[0]{"decoder"}->decode(${$_[0]{"raw_data"};}, 0)
ABresult
1X1
011
000
22 }
23  
24  
25 0 ▶sub row_hashes {
Subroutine row_hashes: not called CC=2 SCAR=17.9
Pod documented
26 0 ▶ return $_[0]{row_hashes} ||= $_[0]{decoder}->decode(${$_[0]{raw_data}}, 1);
Condition0%0/3
$_[0]{"row_hashes"} ||= $_[0]{"decoder"}->decode(${$_[0]{"raw_data"};}, 1)
l!l&&r!l&&!r
000
MC/DC0%0/2
$_[0]{"row_hashes"} ||= $_[0]{"decoder"}->decode(${$_[0]{"raw_data"};}, 1)
$_[0]{"row_hashes"} $_[0]{"decoder"}->decode(${$_[0]{"raw_data"};}, 1)
Truth table0%0/3
A ||= B
A= $_[0]{"row_hashes"}B= $_[0]{"decoder"}->decode(${$_[0]{"raw_data"};}, 1)
ABresult
1X1
011
000
27 }
28  
29  
30 0 ▶sub column_names {
Subroutine column_names: not called CC=1 SCAR=6.9
Pod documented
31 $_[0]{decoder}->column_names
32 0 }
33  
34  
35 0 ▶sub next_page {
Subroutine next_page: not called CC=1 SCAR=6.9
Pod documented
36 $_[0]{next_page}
37 0 }
38  
39  
40 13 1;
41  
42 __END__
« blib/lib/Cassandra/Client/Util.pm ↑ Summary blib/lib/Cassandra/Client/TLSHandling.pm »