Branch Coverage

xs/codecs.c
Criterion Covered Total %
branch 0 84 0.0


line true false branch
10 0 0 if (data_len > (size_t)UINT_MAX) return NULL;
14 0 0 if (ret != Z_OK) return NULL;
17 0 0 if (out_cap > (size_t)UINT_MAX) { deflateEnd(&strm); return NULL; }
26 0 0 if (ret != Z_STREAM_END) {
44 0 0 if (data_len > (size_t)UINT_MAX) return NULL;
48 0 0 if (ret != Z_OK) return NULL;
55 0 0 if (data_len > CH_MAX_DECOMPRESS_SIZE / 4)
59 0 0 if (out_cap < 4096) out_cap = 4096;
67 0 0 if (*out_len + 4096 > out_cap) {
69 0 0 if (out_cap > CH_MAX_DECOMPRESS_SIZE) {
80 0 0 if (ret == Z_STREAM_ERROR || ret == Z_DATA_ERROR ||
0 0 if (ret == Z_STREAM_ERROR || ret == Z_DATA_ERROR ||
0 0 if (ret == Z_STREAM_ERROR || ret == Z_DATA_ERROR ||
81 0 0 ret == Z_MEM_ERROR || ret == Z_BUF_ERROR) {
87 0 0 } while (ret != Z_STREAM_END);
262 0 0 if (len >= 10 && s[4] == '-' && s[7] == '-') {
0 0 if (len >= 10 && s[4] == '-' && s[7] == '-') {
0 0 if (len >= 10 && s[4] == '-' && s[7] == '-') {
267 0 0 if (month <= 2) { year--; month += 9; } else { month -= 3; }
269 0 0 int era = (year >= 0 ? year : year - 399) / 400;
282 0 0 if (len >= 10 && s[4] == '-' && s[7] == '-') {
0 0 if (len >= 10 && s[4] == '-' && s[7] == '-') {
0 0 if (len >= 10 && s[4] == '-' && s[7] == '-') {
283 0 0 if (len >= 19) {
311 0 0 while (p < end) {
313 0 0 if (p + 1 == end && *p == '\n') break;
0 0 if (p + 1 == end && *p == '\n') break;
318 0 0 while (p <= end) {
319 0 0 int is_end_of_line = (p == end || *p == '\n');
0 0 int is_end_of_line = (p == end || *p == '\n');
320 0 0 int is_tab = (!is_end_of_line && *p == '\t');
0 0 int is_tab = (!is_end_of_line && *p == '\t');
322 0 0 if (is_end_of_line || is_tab) {
0 0 if (is_end_of_line || is_tab) {
327 0 0 if (field_len == 2 && field_start[0] == '\\' && field_start[1] == 'N') {
0 0 if (field_len == 2 && field_start[0] == '\\' && field_start[1] == 'N') {
0 0 if (field_len == 2 && field_start[0] == '\\' && field_start[1] == 'N') {
334 0 0 while (s < s_end) {
335 0 0 if (*s == '\\' && s + 1 < s_end) {
0 0 if (*s == '\\' && s + 1 < s_end) {
357 0 0 if (is_tab) {
361 0 0 if (p < end) p++; /* skip \n */