Branch Coverage

lib/Smartcat/Client/ProjectApi.pm
Criterion Covered Total %
branch 1 188 0.5


line true false branch
42 0 1 if ($_[0] and ref $_[0] and ref $_[0] eq 'Smartcat::Client::ApiClient') { }
122 0 0 unless (exists $args{'project_id'})
129 0 0 unless (exists $args{'document_model'})
136 0 0 unless (exists $args{'file'})
153 0 0 if ($_header_accept)
160 0 0 if (exists $args{'project_id'})
166 0 0 if (exists $args{'disassemble_algorithm_name'})
172 0 0 if (exists $args{'external_id'})
178 0 0 if (exists $args{'meta_info'})
184 0 0 if (exists $args{'target_languages'})
190 0 0 if (exists $args{'preset_disassemble_algorithm'})
198 0 0 if (exists $args{'document_model'})
209 0 0 if (exists $args{'file'} and ref $args{'file'} eq 'HASH')
228 0 0 unless ($response)
269 0 0 unless (exists $args{'project_id'})
276 0 0 unless (exists $args{'target_language'})
292 0 0 if ($_header_accept)
299 0 0 if (exists $args{'project_id'})
305 0 0 if (exists $args{'target_language'})
356 0 0 unless (exists $args{'project_id'})
374 0 0 if ($_header_accept)
381 0 0 if (exists $args{'only_exact_matches'})
387 0 0 if (exists $args{'project_id'})
404 0 0 unless ($response)
439 0 0 unless (exists $args{'project_id'})
455 0 0 if ($_header_accept)
462 0 0 if (exists $args{'project_id'})
507 0 0 unless (exists $args{'project_id'})
523 0 0 if ($_header_accept)
530 0 0 if (exists $args{'project_id'})
575 0 0 unless (exists $args{'project'})
592 0 0 if ($_header_accept)
601 0 0 if (exists $args{'project'})
613 0 0 unless ($response)
648 0 0 unless (exists $args{'project_id'})
664 0 0 if ($_header_accept)
671 0 0 if (exists $args{'project_id'})
718 0 0 unless (exists $args{'project_id'})
735 0 0 if ($_header_accept)
742 0 0 if (exists $args{'project_id'})
759 0 0 unless ($response)
822 0 0 if ($_header_accept)
829 0 0 if (exists $args{'created_by_user_id'})
835 0 0 if (exists $args{'project_name'})
841 0 0 if (exists $args{'external_tag'})
847 0 0 if (exists $args{'client_ids'})
862 0 0 unless ($response)
899 0 0 unless (exists $args{'project_id'})
917 0 0 if ($_header_accept)
924 0 0 if (exists $args{'project_id'})
941 0 0 unless ($response)
976 0 0 unless (exists $args{'project_id'})
993 0 0 if ($_header_accept)
1000 0 0 if (exists $args{'project_id'})
1017 0 0 unless ($response)
1058 0 0 unless (exists $args{'project_id'})
1075 0 0 if ($_header_accept)
1082 0 0 if (exists $args{'only_exact_matches'})
1088 0 0 if (exists $args{'project_id'})
1105 0 0 unless ($response)
1148 0 0 unless (exists $args{'project_id'})
1165 0 0 if ($_header_accept)
1172 0 0 if (exists $args{'only_exact_matches'})
1178 0 0 if (exists $args{'project_id'})
1195 0 0 unless ($response)
1231 0 0 unless (exists $args{'project_id'})
1249 0 0 if ($_header_accept)
1256 0 0 if (exists $args{'project_id'})
1273 0 0 unless ($response)
1308 0 0 unless (exists $args{'project_id'})
1324 0 0 if ($_header_accept)
1331 0 0 if (exists $args{'project_id'})
1382 0 0 unless (exists $args{'project_id'})
1389 0 0 unless (exists $args{'glossary_ids'})
1405 0 0 if ($_header_accept)
1412 0 0 if (exists $args{'project_id'})
1422 0 0 if (exists $args{'glossary_ids'})
1471 0 0 unless (exists $args{'tm_for_languages_models'})
1478 0 0 unless (exists $args{'project_id'})
1496 0 0 if ($_header_accept)
1503 0 0 if (exists $args{'project_id'})
1513 0 0 if (exists $args{'tm_for_languages_models'})
1525 0 0 unless ($response)
1567 0 0 unless (exists $args{'tm_models'})
1574 0 0 unless (exists $args{'project_id'})
1592 0 0 if ($_header_accept)
1599 0 0 if (exists $args{'project_id'})
1609 0 0 if (exists $args{'tm_models'})
1621 0 0 unless ($response)
1662 0 0 unless (exists $args{'project_id'})
1669 0 0 unless (exists $args{'model'})
1685 0 0 if ($_header_accept)
1692 0 0 if (exists $args{'project_id'})
1702 0 0 if (exists $args{'model'})