Lines Matching refs:expectation
141 static bool contains(const uint8_t* result, size_t size, const char expectation[]) { in contains() argument
142 size_t len = strlen(expectation); in contains()
145 if (0 == memcmp(result + i, expectation, len)) { in contains()
174 for (const char* expectation : expectations) { in DEF_TEST() local
175 if (!contains(data->bytes(), data->size(), expectation)) { in DEF_TEST()
176 ERRORF(r, "PDFA expectation missing: '%s'.", expectation); in DEF_TEST()
192 for (const char* expectation : moreExpectations) { in DEF_TEST() local
193 if (!contains(data->bytes(), data->size(), expectation)) { in DEF_TEST()
194 ERRORF(r, "PDFA expectation missing: '%s'.", expectation); in DEF_TEST()
219 for (const char* expectation : expectations) { in DEF_TEST() local
220 if (!contains(data->bytes(), data->size(), expectation)) { in DEF_TEST()
221 ERRORF(r, "PDF expectation missing: '%s'.", expectation); in DEF_TEST()