Lines Matching refs:test

536     nxt_http_parse_test_case_t  *test;  in nxt_http_parse_test()  local
548 test = &nxt_http_test_cases[i]; in nxt_http_parse_test()
561 if (test->handler == &nxt_http_parse_test_fields) { in nxt_http_parse_test()
562 rp.discard_unsafe_fields = test->data.fields.discard_unsafe_fields; in nxt_http_parse_test()
565 rc = nxt_http_parse_test_run(&rp, &test->request); in nxt_http_parse_test()
567 if (rc != test->result) { in nxt_http_parse_test()
571 &test->request, rc, test->result); in nxt_http_parse_test()
575 if (test->handler != NULL in nxt_http_parse_test()
576 && test->handler(&rp, &test->data, &test->request, thr->log) in nxt_http_parse_test()
721 nxt_http_parse_test_request_line_t *test = &data->request_line; in nxt_http_parse_test_request_line() local
723 if (rp->method.start != test->method.start in nxt_http_parse_test_request_line()
724 && !nxt_strstr_eq(&rp->method, &test->method)) in nxt_http_parse_test_request_line()
729 request, &rp->method, &test->method); in nxt_http_parse_test_request_line()
736 if (str.start != test->target.start in nxt_http_parse_test_request_line()
737 && !nxt_strstr_eq(&str, &test->target)) in nxt_http_parse_test_request_line()
742 request, &str, &test->target); in nxt_http_parse_test_request_line()
746 if (rp->args.start != test->args.start in nxt_http_parse_test_request_line()
747 && !nxt_strstr_eq(&rp->args, &test->args)) in nxt_http_parse_test_request_line()
752 request, &rp->args, &test->args); in nxt_http_parse_test_request_line()
756 if (nxt_memcmp(rp->version.str, test->version, 8) != 0) { in nxt_http_parse_test_request_line()
761 (size_t) 8, test->version); in nxt_http_parse_test_request_line()
765 if (rp->complex_target != (test->complex_target | test->quoted_target)) { in nxt_http_parse_test_request_line()
769 request, rp->complex_target, test->complex_target); in nxt_http_parse_test_request_line()
774 if (rp->quoted_target != test->quoted_target) { in nxt_http_parse_test_request_line()
778 request, rp->quoted_target, test->quoted_target); in nxt_http_parse_test_request_line()
782 if (rp->space_in_target != test->space_in_target) { in nxt_http_parse_test_request_line()
786 request, rp->space_in_target, test->space_in_target); in nxt_http_parse_test_request_line()