Branch Coverage

src/csnappy_compress.c
Criterion Covered Total %
branch 34 52 65.3


line true false branch
51 131 899 if (v < (1<<7)) {
53 899 0 } else if (v < (1<<14)) {
56 0 0 } else if (v < (1<<21)) {
60 0 0 } else if (v < (1<<28)) {
266 64766 1010 while (likely(s2 <= s2_limit - 8)) {
267 64766 0 if (unlikely(UNALIGNED_LOAD64(s1 + matched) ==
286 3534 1010 while (likely(s2 < s2_limit)) {
287 3534 0 if (likely(s1[matched] == *s2)) {
336 1030 0 if (n < 60) {
350 1010 20 if (allow_fast_path && len <= 16) {
1010 0 if (allow_fast_path && len <= 16) {
360 0 0 while (n > 0) {
380 165 8540 if ((len < 12) && (offset < 2048)) {
165 0 if ((len < 12) && (offset < 2048)) {
400 7650 1010 while (len >= 68) {
407 45 965 if (len > 64) {
498 18 1012 if (unlikely(input_size < kInputMarginBytes))
543 2 1010 if (unlikely(next_ip > ip_limit))
551 0 1010 } while (likely(UNALIGNED_LOAD32(ip) !=
585 1010 0 if (unlikely(ip >= ip_limit))
594 0 0 } while (GetUint32AtOffset(input_bytes, 1) == candidate_bytes);
602 20 1010 if (next_emit < ip_end)
636 1030 1030 while (input_length > 0) {
639 1030 0 if (unlikely(num_to_read < kBlockSize)) {
641 2314 0 workmem_size < workmem_bytes_power_of_two;
643 1030 1284 if ((1 << (workmem_size-1)) >= num_to_read)