Condition Coverage

blib/lib/ClickHouse/Encoder/TCP.pm
Criterion Covered Total %
condition 48 76 63.1


and 3 conditions

line !l l&&!r l&&r condition
174 1 0 2 defined $o{'compress'} and $o{'compress'} ne "none"
1 0 2 defined $o{'compress'} and $o{'compress'} ne "none" and $o{'compress'} ne "raw"
191 1 0 2 defined $o{'compress'} and $o{'compress'} ne "none"
1 0 2 defined $o{'compress'} and $o{'compress'} ne "none" and $o{'compress'} ne "raw"

or 2 conditions

line l !l condition
88 1 0 $o{'client_name'} // "ClickHouse::Encoder"
0 1 $o{'major'} // 1
0 1 $o{'minor'} // 0
0 1 $o{'revision'} // 54429
1 0 $o{'database'} // "default"
1 0 $o{'user'} // "default"
1 0 $o{'password'} // ""
107 7 5 $o{'query_id'} // ""
3 9 $o{'stage'} // 2
0 12 $o{'compression'} // 0
11 1 $o{'query'} // die("pack_query: 'query' is required\n")
117 3 9 $o->{'revision'} // 54429
119 0 12 $o->{'query_kind'} // 1
120 0 12 $o->{'initial_user'} // ""
121 0 12 $o->{'initial_query_id'} // ""
122 0 12 $o->{'initial_address'} // "0.0.0.0:0"
126 0 12 $o->{'os_user'} // ""
127 0 12 $o->{'client_hostname'} // "localhost"
128 0 12 $o->{'client_name'} // "ClickHouse::Encoder"
130 0 12 $o->{'client_version_major'} // 1
131 0 12 $o->{'client_version_minor'} // 0
134 0 11 $o->{'quota_key'} // ""
136 0 10 $o->{'client_version_patch'} // 0
179 0 3 $o{'table_name'} // ""
196 0 3 $o{'table_name'} // ""
216 24 0 $offset //= 0

or 3 conditions

line l !l&&r !l&&!r condition
132 0 12 0 $o->{'client_revision'} // $rev
219 3 3 7 $type == 4 or $type == 5
1 1 4 $type == 1 or $type == 7
2 1 3 $type == 1 or $type == 7 or $type == 8