| 29 | return ci_path(row,(const unsigned char *)path,strlen(path),status); |
| 30 | } |
| 31 | static bool ci_floor(const cbm_changes_t *c,size_t want,unsigned issue) { |
| 32 | size_t count=777; const cbm_change_file_t *rows=cbm_changes_files(c,&count); |
| 33 | if (!c || count!=want || (want && !rows) || cbm_changes_patch_reconciled(c) || |
| 34 | cbm_changes_can_narrow(c) || (cbm_changes_issues(c)&issue)!=issue) return false; |
| 35 | for (size_t i=0;i<count;i++) |
| 36 | if (rows[i].evidence!=CBM_CHANGE_WHOLE_FILE || !(rows[i].reasons&CBM_CHANGE_UNRECONCILED) || rows[i].patch_file) return false; |
| 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; |
no test coverage detected