| 677 | } gic_observation; |
| 678 | |
| 679 | static bool gic_long_operation(cbm_ignore_checked_t *owner, const cbm_ignore_program_t *program, |
| 680 | const gic_long_input *input, bool parsing, |
| 681 | const cbm_ignore_checked_control_t *control, |
| 682 | const cbm_ignore_program_t **parsed, |
| 683 | cbm_ignore_checked_status_t *status) { |
| 684 | cbm_ignore_checked_error_t error; |
| 685 | if (parsing) { |
| 686 | cbm_ignore_checked_parse_result_t out = {.program = program, .pattern_count = 77}; |
| 687 | *status = cbm_ignore_checked_parse(owner, input->patterns, input->pattern_length, control, |
| 688 | &out, &error); |
| 689 | if (*status == CBM_IGNORE_CHECKED_OK) { |
| 690 | *parsed = out.program; |
| 691 | return error.status == *status && out.program && out.pattern_count == 1; |
| 692 | } |
| 693 | return error.status == *status && !out.program && out.pattern_count == 0; |
| 694 | } |
| 695 | cbm_ignore_decision_t decision = CBM_IGNORE_IGNORED; |
| 696 | *status = cbm_ignore_checked_match(owner, program, input->path, strlen(input->path), false, |
| 697 | control, &decision, &error); |
| 698 | return error.status == *status && |
| 699 | decision == |
| 700 | (*status == CBM_IGNORE_CHECKED_OK ? input->expected : CBM_IGNORE_UNAVAILABLE); |
| 701 | } |
| 702 | |
| 703 | static bool gic_long_run(const gic_long_input *input, bool parsing, size_t stop, |
| 704 | gic_observation *observation) { |
no test coverage detected