Branch Coverage

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


line true false branch
80 0 17 @_ && UNIVERSAL::isa($_[0], 'MySQL::Compress') ? :
83 4 13 unless (defined $source and length $source)
86 0 7 unless (defined $level and length $level == 1 and $level =~ /^\d$/)
92 2 11 if (substr($result, -1) eq ' ')
111 0 21 @_ && UNIVERSAL::isa($_[0], 'MySQL::Compress') ? :
113 3 18 unless (defined $source)
117 0 18 if (ref $source) { }
118 0 0 unless (defined $$source)
127 0 18 unless (defined $expect_len)
130 3 15 if ($expect_len == 0)
134 15 0 if (defined $result)
137 0 15 if ($expect_len != $actual_len)
158 18 7 @_ && UNIVERSAL::isa($_[0], 'MySQL::Compress') ? :
160 1 24 unless (defined $source)
164 18 6 if (ref $source) { }
165 0 18 unless (defined $$source)
176 4 20 if ($len < $min_compressed_length)
177 4 0 if ($len == 0)