Branch Coverage

srl_compress.h
Criterion Covered Total %
branch 48 50 96.0


line true false branch
53 63863 118415 while (number >= 0x80) { /* while we are larger than 7 bits long */
59 20279 98136 if ( varint_start == varint_end ) {
69 23952 98136 while ( varint_start < varint_end )
80 19458 56142 if (expect_false(*workmem == NULL)) {
83 0 19458 if (*workmem == NULL)
98 30852 1283187 if (compress_flags & SRL_F_COMPRESS_SNAPPY) {
100 394080 889107 } else if (compress_flags & SRL_F_COMPRESS_SNAPPY_INCREMENTAL) {
102 152086 737021 } else if (compress_flags & SRL_F_COMPRESS_ZLIB) {
104 100309 636712 } else if (compress_flags & SRL_F_COMPRESS_ZSTD) {
147 192270 6480 const int is_zlib = !is_traditional_snappy && !is_incremental_snappy && !is_zstd;
123150 69120 const int is_zlib = !is_traditional_snappy && !is_incremental_snappy && !is_zstd;
73890 49260 const int is_zlib = !is_traditional_snappy && !is_incremental_snappy && !is_zstd;
158 69120 129630 if (is_incremental_snappy) {
161 6480 123150 } else if (is_traditional_snappy) {
163 49260 73890 } else if (is_zstd) {
181 73890 124860 if (is_zlib) srl_buf_cat_varint_nocheck(aTHX_ buf, 0, uncompressed_body_length);
184 129630 69120 if (is_incremental_snappy || is_zlib || is_zstd) {
55740 73890 if (is_incremental_snappy || is_zlib || is_zstd) {
49260 6480 if (is_incremental_snappy || is_zlib || is_zstd) {
190 129630 69120 if (is_incremental_snappy || is_traditional_snappy) {
6480 123150 if (is_incremental_snappy || is_traditional_snappy) {
198 49260 73890 } else if (is_zstd) {
205 73890 0 } else if (is_zlib) {
223 73855 124895 if (compressed_body_length >= uncompressed_body_length) {
230 118415 6480 if (varint_start)