| 37 | return true; |
| 38 | } |
| 39 | static bool ci_legacy(const unsigned char *patch,size_t len,bool complete,int want_count) { |
| 40 | cbm_diff_t *d=cbm_diff_parse((const char *)patch,len); int count=-1; |
| 41 | if (!d) return false; |
| 42 | const cbm_diff_file_t *files=cbm_diff_files(d,&count); |
| 43 | bool ok=d && cbm_diff_complete(d)==complete && (want_count<0 || count==want_count) && (!count || files); |
| 44 | cbm_diff_free(d); return ok; |
| 45 | } |
| 46 | static bool ci_mixed_result(const cbm_changes_t *c) { |
| 47 | size_t count=0; const cbm_change_file_t *rows=cbm_changes_files(c,&count); |
| 48 | if (!c || count!=3 || !rows || cbm_changes_state(c)!=CBM_CHANGES_NONEMPTY || |
no test coverage detected