Condition Coverage

lib/Web/DataService/Format.pm
Criterion Covered Total %
condition 16 56 28.5


and 3 conditions

line !l l&&!r l&&r condition
88 8 0 0 $k eq 'default_vocab' and defined $v
8 0 0 $k eq 'default_vocab' and defined $v and $v ne ''
94 0 0 0 $ds->{'vocab'}{$v}{'disabled'} and not $item->{'disabled'}
120 0 0 2 $record->{'module'} and not $record->{'disabled'}
250 0 0 0 $doc_link and @paths
0 0 0 $doc_link and @paths and $options->{'extended'}

or 2 conditions

line l !l condition
103 0 0 $record->{'uses_header'} //= 1
105 0 1 $record->{'is_text'} //= 1
195 0 0 $options ||= {}
196 0 0 $path ||= '/'

or 3 conditions

line l !l&&r !l&&!r condition
102 1 1 0 $record->{'content_type'} ||= $FORMAT_CT{$name}
103 0 0 2 $name eq 'txt' or $name eq 'tsv'
0 0 2 $name eq 'txt' or $name eq 'tsv' or $name eq 'csv'
105 1 0 1 $record->{'content_type'} =~ /(x(?:ht)?ml|text|json|javascript)/ or $record->{'encode_as_text'}
110 0 1 1 $record->{'package'} //= $record->{'module'}
111 1 1 0 $record->{'package'} //= $FORMAT_CLASS{$name}
116 1 1 0 $record->{'module'} //= $record->{'package'}
233 0 0 0 $options->{'extended'} || !@paths
243 0 0 0 $frec->{'title'} || $frec->{'name'}
253 0 0 0 $options->{'extended'} or not @paths