Branch Coverage

Brotli.xs
Criterion Covered Total %
branch 19 34 55.8


line true false branch
35 0 86 if(!BrotliDecoderDecompress(encoded_size, encoded_buffer, &decoded_size, decoded_buffer)){
72 9475 9475 while(result == BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT) {
81 0 9475 if(!result){
106 0 42 if( quality < BROTLI_MIN_QUALITY || quality > BROTLI_MAX_QUALITY ) {
109 42 0 if( lgwin < BROTLI_MIN_WINDOW_BITS || lgwin > BROTLI_MAX_WINDOW_BITS ) {
0 42 if( lgwin < BROTLI_MIN_WINDOW_BITS || lgwin > BROTLI_MAX_WINDOW_BITS ) {
114 0 42 if(!encoded_size){
125 0 42 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 84 if( value < BROTLI_MIN_QUALITY || value > BROTLI_MAX_QUALITY ) {
214 84 84 if(in == &PL_sv_undef)
229 0 168 if(!result) {
234 104 64 if( available_out != BUFFER_SIZE ) {
238 84 84 if(
240 84 0 (!available_in && !BrotliEncoderHasMoreOutput(self->encoder))
0 84 (!available_in && !BrotliEncoderHasMoreOutput(self->encoder))