()
| 313 | |
| 314 | |
| 315 | def conditional_process() -> ErrorCode: |
| 316 | start_time = time() |
| 317 | |
| 318 | for processor_module in get_processors_modules(state_manager.get_item('processors')): |
| 319 | if not processor_module.pre_process('output'): |
| 320 | return 2 |
| 321 | |
| 322 | if is_image(state_manager.get_item('target_path')): |
| 323 | return image_to_image.process(start_time) |
| 324 | if is_video(state_manager.get_item('target_path')): |
| 325 | return image_to_video.process(start_time) |
| 326 | |
| 327 | return 0 |
| 328 | |
| 329 |
no test coverage detected