Sat, 22 Nov 2025 19:00:44 +0100
add coverage exclusions for properties.c
| src/properties.c | file | annotate | diff | comparison | revisions |
--- a/src/properties.c Sat Nov 22 18:49:43 2025 +0100 +++ b/src/properties.c Sat Nov 22 19:00:44 2025 +0100 @@ -120,7 +120,7 @@ // still not enough data, copy input buffer to internal buffer if (cxBufferAppend(input.ptr, 1, input.length, &prop->buffer) < input.length) { - return CX_PROPERTIES_BUFFER_ALLOC_FAILED; + return CX_PROPERTIES_BUFFER_ALLOC_FAILED; // LCOV_EXCL_LINE } // reset the input buffer (make way for a re-fill) cxBufferReset(&prop->input); @@ -360,7 +360,7 @@ // initialize reader if (source.read_init_func != NULL) { if (source.read_init_func(prop, &source)) { - return CX_PROPERTIES_READ_INIT_FAILED; + return CX_PROPERTIES_READ_INIT_FAILED; // LCOV_EXCL_LINE } } @@ -371,10 +371,10 @@ while (true) { // read input cxstring input; - if (source.read_func(prop, &source, &input)) { + if (source.read_func(prop, &source, &input)) { // LCOV_EXCL_START status = CX_PROPERTIES_READ_FAILED; break; - } + } // LCOV_EXCL_STOP // no more data - break if (input.length == 0) { @@ -401,7 +401,7 @@ if (kv_status == CX_PROPERTIES_NO_ERROR) { found = true; if (sink.sink_func(prop, &sink, key, value)) { - kv_status = CX_PROPERTIES_SINK_FAILED; + kv_status = CX_PROPERTIES_SINK_FAILED; // LCOV_EXCL_LINE } } } while (kv_status == CX_PROPERTIES_NO_ERROR);