Branch Coverage

blib/lib/MySQL/Compress.pm
Criterion Covered Total %
branch 25 36 69.4


line true false branch
86 0 17 @_ && UNIVERSAL::isa($_[0], 'MySQL::Compress') ? :
89 4 13 unless (defined $source and length $source)
92 0 7 unless (defined $level and length $level == 1 and $level =~ /^\d$/)
98 2 11 if (substr($result, -1) eq ' ')
117 0 21 @_ && UNIVERSAL::isa($_[0], 'MySQL::Compress') ? :
119 3 18 unless (defined $source)
123 0 18 if (ref $source) { }
124 0 0 unless (defined $$source)
133 0 18 unless (defined $expect_len)
136 3 15 if ($expect_len == 0)
140 15 0 if (defined $result)
143 0 15 if ($expect_len != $actual_len)
164 18 7 @_ && UNIVERSAL::isa($_[0], 'MySQL::Compress') ? :
166 1 24 unless (defined $source)
170 18 6 if (ref $source) { }
171 0 18 unless (defined $$source)
182 4 20 if ($len < $min_compressed_length)
183 4 0 if ($len == 0)