Branch Coverage

Brotli.xs
Criterion Covered Total %
branch 19 34 55.8


line true false branch
35 0 89 if(!BrotliDecoderDecompress(encoded_size, encoded_buffer, &decoded_size, decoded_buffer)){
72 9482 9482 while(result == BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT) {
81 0 9482 if(!result){
106 0 44 if( quality < BROTLI_MIN_QUALITY || quality > BROTLI_MAX_QUALITY ) {
109 44 0 if( lgwin < BROTLI_MIN_WINDOW_BITS || lgwin > BROTLI_MAX_WINDOW_BITS ) {
0 44 if( lgwin < BROTLI_MIN_WINDOW_BITS || lgwin > BROTLI_MAX_WINDOW_BITS ) {
114 0 44 if(!encoded_size){
125 0 44 if(!result){
159 0 0 if( value < BROTLI_MIN_WINDOW_BITS || value > BROTLI_MAX_WINDOW_BITS ) {
0 0 if( value < BROTLI_MIN_WINDOW_BITS || value > BROTLI_MAX_WINDOW_BITS ) {
165 0 88 if( value < BROTLI_MIN_QUALITY || value > BROTLI_MAX_QUALITY ) {
214 88 88 if(in == &PL_sv_undef)
229 0 176 if(!result) {
234 109 67 if( available_out != BUFFER_SIZE ) {
238 88 88 if(
240 88 0 (!available_in && !BrotliEncoderHasMoreOutput(self->encoder))
0 88 (!available_in && !BrotliEncoderHasMoreOutput(self->encoder))