| 1873 | } |
| 1874 | |
| 1875 | static bool gfb_good(gfb_fixture_t *f, cbm_git_facts_t *facts, cbm_git_revision_t rev, |
| 1876 | const size_t *indices, size_t count, const cbm_git_blob_batch_limits_t *limits, |
| 1877 | cbm_git_blob_batch_t *keep) { |
| 1878 | cbm_git_blob_batch_request_t request={rev,indices,count}; |
| 1879 | cbm_git_blob_batch_t out=gfb_poisoned(); cbm_git_facts_error_t error; |
| 1880 | memset(&error,0xa5,sizeof(error)); |
| 1881 | bool read=cbm_git_facts_read_blob_batch(facts,&request,limits,&out,&error); |
| 1882 | if (!read || !gfa_clean_error(&error)) |
| 1883 | gfb_report(read ? "blob batch (unclean error)" : "blob batch", &error); |
| 1884 | bool ok=read && gfa_clean_error(&error) && gfb_matches(f,rev,indices,count,&out); |
| 1885 | if (keep) *keep=out; |
| 1886 | return ok; |
| 1887 | } |
| 1888 | |
| 1889 | static bool gfb_error(cbm_git_facts_t *facts, const cbm_git_blob_batch_request_t *request, |
| 1890 | const cbm_git_blob_batch_limits_t *limits, cbm_git_facts_status_t expected) { |
no test coverage detected