Condition Coverage

blib/lib/Confluent/SchemaRegistry.pm
Criterion Covered Total %
condition 2 120 1.6


and 2 conditions

line l !l condition
545 0 0 $self->_set_error(_encode_error(-1, 'Unexpected value for COMPATIBILITY_LEVEL param')) and return undef
580 0 0 $self->_set_error(_encode_error(-1, 'Bad SUBJECT or TYPE parameter')) and return undef
584 0 0 $self->_set_error(_encode_error(-1, 'Unexpected value for COMPATIBILITY_LEVEL param')) and return undef

and 3 conditions

line !l l&&!r l&&r condition
161 1 0 0 defined $res and grep /^$res$/, @$COMPATIBILITY_LEVELS
294 0 0 0 defined $params{'SUBJECT'} and defined $params{'TYPE'}
0 0 0 defined $params{'SUBJECT'} and defined $params{'TYPE'} and $params{'SUBJECT'} =~ /^.+$/
0 0 0 defined $params{'SUBJECT'} and defined $params{'TYPE'} and $params{'SUBJECT'} =~ /^.+$/ and $params{'TYPE'} =~ /^key|value$/
330 0 0 0 defined $params{'SUBJECT'} and defined $params{'TYPE'}
0 0 0 defined $params{'SUBJECT'} and defined $params{'TYPE'} and $params{'SUBJECT'} =~ /^.+$/
0 0 0 defined $params{'SUBJECT'} and defined $params{'TYPE'} and $params{'SUBJECT'} =~ /^.+$/ and $params{'TYPE'} =~ /^key|value$/
349 0 0 0 defined $params{'SUBJECT'} and defined $params{'TYPE'}
0 0 0 defined $params{'SUBJECT'} and defined $params{'TYPE'} and $params{'SUBJECT'} =~ /^.+$/
0 0 0 defined $params{'SUBJECT'} and defined $params{'TYPE'} and $params{'SUBJECT'} =~ /^.+$/ and $params{'TYPE'} =~ /^key|value$/
365 0 0 0 defined $params{'SCHEMA_ID'} and $params{'SCHEMA_ID'} =~ /^\d+$/
395 0 0 0 defined $params{'SUBJECT'} and defined $params{'TYPE'}
0 0 0 defined $params{'SUBJECT'} and defined $params{'TYPE'} and $params{'SUBJECT'} =~ /^.+$/
0 0 0 defined $params{'SUBJECT'} and defined $params{'TYPE'} and $params{'SUBJECT'} =~ /^.+$/ and $params{'TYPE'} =~ /^key|value$/
398 0 0 0 defined $params{'VERSION'} and not $params{'VERSION'} =~ /^\d+$/
430 0 0 0 defined $params{'SUBJECT'} and defined $params{'TYPE'}
0 0 0 defined $params{'SUBJECT'} and defined $params{'TYPE'} and $params{'SUBJECT'} =~ /^.+$/
0 0 0 defined $params{'SUBJECT'} and defined $params{'TYPE'} and $params{'SUBJECT'} =~ /^.+$/ and $params{'TYPE'} =~ /^key|value$/
433 0 0 0 defined $params{'VERSION'} and $params{'VERSION'} =~ /^\d+$/
452 0 0 0 defined $params{'SUBJECT'} and defined $params{'TYPE'}
0 0 0 defined $params{'SUBJECT'} and defined $params{'TYPE'} and $params{'SUBJECT'} =~ /^.+$/
0 0 0 defined $params{'SUBJECT'} and defined $params{'TYPE'} and $params{'SUBJECT'} =~ /^.+$/ and $params{'TYPE'} =~ /^key|value$/
472 0 0 0 defined $params{'SUBJECT'} and defined $params{'TYPE'}
0 0 0 defined $params{'SUBJECT'} and defined $params{'TYPE'} and $params{'SUBJECT'} =~ /^.+$/
0 0 0 defined $params{'SUBJECT'} and defined $params{'TYPE'} and $params{'SUBJECT'} =~ /^.+$/ and $params{'TYPE'} =~ /^key|value$/
503 0 0 0 defined $params{'SUBJECT'} and defined $params{'TYPE'}
0 0 0 defined $params{'SUBJECT'} and defined $params{'TYPE'} and $params{'SUBJECT'} =~ /^.+$/
0 0 0 defined $params{'SUBJECT'} and defined $params{'TYPE'} and $params{'SUBJECT'} =~ /^.+$/ and $params{'TYPE'} =~ /^key|value$/
506 0 0 0 defined $params{'VERSION'} and not $params{'VERSION'} =~ /^\d+$/
545 0 0 0 defined $params{'COMPATIBILITY_LEVEL'} and grep /^$params{'COMPATIBILITY_LEVEL'}$/, @$COMPATIBILITY_LEVELS
563 0 0 0 defined $params{'SUBJECT'} and defined $params{'TYPE'}
0 0 0 defined $params{'SUBJECT'} and defined $params{'TYPE'} and $params{'SUBJECT'} =~ /^.+$/
0 0 0 defined $params{'SUBJECT'} and defined $params{'TYPE'} and $params{'SUBJECT'} =~ /^.+$/ and $params{'TYPE'} =~ /^key|value$/
580 0 0 0 defined $params{'SUBJECT'} and defined $params{'TYPE'}
0 0 0 defined $params{'SUBJECT'} and defined $params{'TYPE'} and $params{'SUBJECT'} =~ /^.+$/
0 0 0 defined $params{'SUBJECT'} and defined $params{'TYPE'} and $params{'SUBJECT'} =~ /^.+$/ and $params{'TYPE'} =~ /^key|value$/
584 0 0 0 defined $params{'COMPATIBILITY_LEVEL'} and grep /^$params{'COMPATIBILITY_LEVEL'}$/, @$COMPATIBILITY_LEVELS

or 3 conditions

line l !l&&r !l&&!r condition
144 0 1 0 ref $this || $this