Lines Matching refs:expects
234 ExceptionExpectation* expects) { in CheckException() argument
236 if (expects->throws) { in CheckException()
238 if (expects->type == NULL) { in CheckException()
241 fail(data, "Didn't throw \"%s\" as expected\n", expects->type); in CheckException()
244 if (expects->type != NULL) { in CheckException()
246 if (strcmp(expects->type, actual_message)) { in CheckException()
248 expects->type, actual_message, reader.beg_pos(), reader.end_pos()); in CheckException()
251 if (expects->beg_pos >= 0) { in CheckException()
252 if (expects->beg_pos != reader.beg_pos()) { in CheckException()
254 expects->beg_pos, reader.beg_pos()); in CheckException()
257 if (expects->end_pos >= 0) { in CheckException()
258 if (expects->end_pos != reader.end_pos()) { in CheckException()
260 expects->end_pos, reader.end_pos()); in CheckException()
273 ExceptionExpectation expects; in ParseExpectation() local
279 expects.throws = true; in ParseExpectation()
282 expects.type = argv[arg_index]; in ParseExpectation()
285 expects.beg_pos = atoi(argv[arg_index]); // NOLINT in ParseExpectation()
288 expects.end_pos = atoi(argv[arg_index]); // NOLINT in ParseExpectation()
293 return expects; in ParseExpectation()
320 ExceptionExpectation expects = in main() local
367 CheckException(&data, &expects); in main()