Branch Coverage

lib/Smartcat/Client/DocumentApi.pm
Criterion Covered Total %
branch 1 156 0.6


line true false branch
42 0 1 if ($_[0] and ref $_[0] and ref $_[0] eq 'Smartcat::Client::ApiClient') { }
92 0 0 unless (exists $args{'document_id'})
99 0 0 unless (exists $args{'stage_number'})
106 0 0 unless (exists $args{'request'})
122 0 0 if ($_header_accept)
129 0 0 if (exists $args{'document_id'})
135 0 0 if (exists $args{'stage_number'})
143 0 0 if (exists $args{'request'})
199 0 0 unless (exists $args{'document_id'})
206 0 0 unless (exists $args{'stage_number'})
213 0 0 unless (exists $args{'freelancer_user_ids'})
229 0 0 if ($_header_accept)
236 0 0 if (exists $args{'document_id'})
242 0 0 if (exists $args{'stage_number'})
250 0 0 if (exists $args{'freelancer_user_ids'})
293 0 0 unless (exists $args{'request_model'})
310 0 0 if ($_header_accept)
319 0 0 if (exists $args{'request_model'})
331 0 0 unless ($response)
365 0 0 unless (exists $args{'document_ids'})
381 0 0 if ($_header_accept)
388 0 0 if (exists $args{'document_ids'})
433 0 0 unless (exists $args{'document_id'})
450 0 0 if ($_header_accept)
457 0 0 if (exists $args{'document_id'})
472 0 0 unless ($response)
513 0 0 unless (exists $args{'user_id'})
520 0 0 unless (exists $args{'document_id'})
537 0 0 if ($_header_accept)
544 0 0 if (exists $args{'user_id'})
550 0 0 if (exists $args{'document_id'})
565 0 0 unless ($response)
606 0 0 unless (exists $args{'document_id'})
623 0 0 if ($_header_accept)
630 0 0 if (exists $args{'document_id'})
636 0 0 if (exists $args{'only_exact_matches'})
651 0 0 unless ($response)
686 0 0 unless (exists $args{'document_id'})
703 0 0 if ($_header_accept)
710 0 0 if (exists $args{'document_id'})
725 0 0 unless ($response)
761 0 0 unless (exists $args{'document_id'})
778 0 0 if ($_header_accept)
785 0 0 if (exists $args{'document_id'})
800 0 0 unless ($response)
841 0 0 unless (exists $args{'document_id'})
848 0 0 unless (exists $args{'name'})
864 0 0 if ($_header_accept)
871 0 0 if (exists $args{'document_id'})
877 0 0 if (exists $args{'name'})
940 0 0 unless (exists $args{'document_id'})
947 0 0 unless (exists $args{'translation_file'})
963 0 0 if ($_header_accept)
970 0 0 if (exists $args{'document_id'})
976 0 0 if (exists $args{'overwrite'})
982 0 0 if (exists $args{'confirm_translation'})
988 0 0 if (exists $args{'translation_file'})
990 0 0 unless defined $form_params->{'translationFile'}
1053 0 0 unless (exists $args{'document_id'})
1060 0 0 unless (exists $args{'confirm_translation'})
1067 0 0 unless (exists $args{'overwrite_updated_segments'})
1074 0 0 unless (exists $args{'translation_file'})
1090 0 0 if ($_header_accept)
1097 0 0 if (exists $args{'document_id'})
1103 0 0 if (exists $args{'confirm_translation'})
1109 0 0 if (exists $args{'overwrite_updated_segments'})
1115 0 0 if (exists $args{'translation_file'})
1117 0 0 unless defined $form_params->{'translationFile'}
1185 0 0 unless (exists $args{'document_id'})
1192 0 0 unless (exists $args{'update_document_model'})
1199 0 0 unless (exists $args{'file'})
1216 0 0 if ($_header_accept)
1223 0 0 if (exists $args{'document_id'})
1229 0 0 if (exists $args{'disassemble_algorithm_name'})
1235 0 0 if (exists $args{'preset_disassemble_algorithm'})
1243 0 0 if (exists $args{'update_document_model'})
1254 0 0 if (exists $args{'file'})
1272 0 0 unless ($response)