Condition Coverage

lib/Web/DataService/Execute.pm
Criterion Covered Total %
condition 0 164 0.0


and 3 conditions

line !l l&&!r l&&r condition
33 0 0 0 defined $attrs and ref $attrs ne 'HASH'
106 0 0 0 defined $ds->{'path_re'} and $request_path =~ /$ds->{'path_re'}/
234 0 0 0 $request->{'is_node_path'} and $request->{'is_doc_request'}
0 0 0 $request->{'is_node_path'} and $request->{'is_doc_request'} and $ds->has_feature('documentation')
0 0 0 $request->{'is_file_path'} and $ds->has_feature('send_files')
0 0 0 $request->{'is_node_path'} and $ds->node_has_operation($path)
307 0 0 0 defined $rest_path and $rest_path ne ''
319 0 0 0 defined $rest_path and $rest_path ne ''
354 0 0 0 $role and $method
530 0 0 0 $save_value ne '' and not $save_value =~ qr/ ^ (?: yes | on | 1 | true ) $ /six
613 0 0 0 defined $save_flag and $save_flag eq '0'
0 0 0 defined $disp and $disp eq 'attachment'
714 0 0 0 $request->display_counts and $request->{'process_before_count'}
800 0 0 0 defined $arg and $arg eq '*'
900 0 0 0 defined $ruleset and $ruleset ne ''
915 0 0 0 defined $path and $path ne ''
0 0 0 defined $path and $path ne '' and $path ne '/'
923 0 0 0 defined $ds->{'ruleset_prefix'} and $ds->{'ruleset_prefix'} ne ''
994 0 0 0 ref $inner and &reftype($inner) eq 'HASH'
0 0 0 ref $inner and &reftype($inner) eq 'HASH' and $inner->{'clean_params'}
1014 0 0 0 ref $inner and $inner->isa('Web::DataService::Request')
1088 0 0 0 ref $request and $request->isa('Web::DataService::Request')
1114 0 0 0 defined $inner && $inner->isa('Web::DataService::Request')
1126 0 0 0 ref $inner and $inner->isa('Web::DataService::Request')
1168 0 0 0 defined $path and $path ne ''
1206 0 0 0 $format_class and $format_class->can('emit_error')

or 2 conditions

line l !l condition
36 0 0 $attrs ||= {}
65 0 0 $Web::DataService::FOUNDATION->get_http_method($outer) || 'UNKNOWN'
97 0 0 $request_params->{$path_param} // ''
108 0 0 $1 // ''
167 0 0 $ds->node_attr($request, 'allow_method') || {'GET', 1, 'HEAD', 1}
427 0 0 $value ||= '[ NO GOOD VALUES FOUND ]'
512 0 0 $request->special_value('linebreak') || $ds->node_attr($path, 'default_linebreak') || 'crlf'
518 0 0 $request->special_value('save') || ''
754 0 0 $request->{'hook_enabled'}{$hook_name} || (return)
827 0 0 $ds->{'format'}{$format}{'content_type'} || 'text/plain'
983 0 0 $1 || ''
1209 0 0 $ds->{'format'}{$format}{'content_type'} || 'text/plain'
1223 0 0 $CODE_STRING{$code} || 'Error'

or 3 conditions

line l !l&&r !l&&!r condition
236 0 0 0 $http_method eq 'GET' or $http_method eq 'HEAD'
250 0 0 0 $http_method eq 'GET' or $http_method eq 'HEAD'
268 0 0 0 $allow_method->{$http_method} or $allow_method->{$check_method}
369 0 0 0 $request->{'is_invalid_request'} or $ds->node_attr($path, 'disabled')
390 0 0 0 $request->{'raw_params'} //= $Web::DataService::FOUNDATION->get_params($request, 'query')
397 0 0 0 $rs_name //= $ds->determine_ruleset($path)
465 0 0 0 $format //= $ds->node_attr($path, 'default_format')
469 0 0 0 $format //= do { $$ds{'format_list'} }->[0]
482 0 0 0 $request->special_value('limit') // $ds->node_attr($path, 'default_limit')
497 0 0 0 $request->special_value('header') // $ds->node_attr($path, 'default_header')
502 0 0 0 $request->special_value('datainfo') // $ds->node_attr($path, 'default_datainfo')
507 0 0 0 $request->special_value('count') // $ds->node_attr($path, 'default_count')
597 0 0 0 $ds->{'format'}{$format}{'default_vocab'} || $ds->{'vocab_list'}[0]
613 0 0 0 defined $disp and $disp eq 'attachment' or $save_flag
698 0 0 0 ref $request->{'main_sth'} or ref $request->{'main_result'}
800 0 0 0 defined $arg and $arg eq '*' or $ds->node_attr($request, 'public_access')
849 0 0 0 $filename //= $ds->node_attr($request, 'default_save_filename')
952 0 0 0 ref $ds->{'set'}{$output_name} eq 'Web::DataService::Set' or ref $ds->{'block'}{$output_name} eq 'Web::DataService::Block'
1120 0 0 0 $format ||= $inner->output_format
1121 0 0 0 $format ||= $ds->determine_output_format($outer, $inner)