Lines Matching defs:expectation
142 static bool contains(const uint8_t* result, size_t size, const char expectation[]) {
143 size_t len = strlen(expectation);
146 if (0 == memcmp(result + i, expectation, len)) {
175 for (const char* expectation : expectations) {
176 if (!contains(data->bytes(), data->size(), expectation)) {
177 ERRORF(r, "PDFA expectation missing: '%s'.", expectation);
191 for (const char* expectation : moreExpectations) {
192 if (!contains(data->bytes(), data->size(), expectation)) {
193 ERRORF(r, "PDFA expectation missing: '%s'.", expectation);
218 for (const char* expectation : expectations) {
219 if (!contains(data->bytes(), data->size(), expectation)) {
220 ERRORF(r, "PDF expectation missing: '%s'.", expectation);