Lines Matching refs:test

142     nxt_http_route_test_t          test[0];  member
185 nxt_str_t *test,
229 static nxt_int_t nxt_http_route_memcmp(u_char *start, u_char *test,
401 nxt_http_route_test_t *test; in nxt_http_route_match_create() local
448 test = &match->test[0]; in nxt_http_route_match_create()
459 test->rule = rule; in nxt_http_route_match_create()
460 test++; in nxt_http_route_match_create()
473 test->rule = rule; in nxt_http_route_match_create()
474 test++; in nxt_http_route_match_create()
487 test->rule = rule; in nxt_http_route_match_create()
488 test++; in nxt_http_route_match_create()
501 test->rule = rule; in nxt_http_route_match_create()
502 test++; in nxt_http_route_match_create()
513 test->table = table; in nxt_http_route_match_create()
514 test++; in nxt_http_route_match_create()
525 test->table = table; in nxt_http_route_match_create()
526 test++; in nxt_http_route_match_create()
537 test->table = table; in nxt_http_route_match_create()
538 test++; in nxt_http_route_match_create()
550 test->rule = rule; in nxt_http_route_match_create()
551 test++; in nxt_http_route_match_create()
561 test->addr_rule = addr_rule; in nxt_http_route_match_create()
562 test++; in nxt_http_route_match_create()
572 test->addr_rule = addr_rule; in nxt_http_route_match_create()
573 test++; in nxt_http_route_match_create()
896 nxt_str_t test; in nxt_http_pattern_compare() local
901 nxt_conf_get_string(value, &test); in nxt_http_pattern_compare()
902 negative1 = (test.length != 0 && test.start[0] == '!'); in nxt_http_pattern_compare()
905 nxt_conf_get_string(value, &test); in nxt_http_pattern_compare()
906 negative2 = (test.length != 0 && test.start[0] == '!'); in nxt_http_pattern_compare()
931 nxt_str_t test, tmp; in nxt_http_route_pattern_create() local
943 nxt_conf_get_string(cv, &test); in nxt_http_route_pattern_create()
953 if (test.length != 0 && test.start[0] == '!') { in nxt_http_route_pattern_create()
954 test.start++; in nxt_http_route_pattern_create()
955 test.length--; in nxt_http_route_pattern_create()
961 if (test.length > 0 && test.start[0] == '~') { in nxt_http_route_pattern_create()
963 test.start++; in nxt_http_route_pattern_create()
964 test.length--; in nxt_http_route_pattern_create()
966 re = nxt_regex_compile(mp, &test, &err); in nxt_http_route_pattern_create()
968 if (err.offset < test.length) { in nxt_http_route_pattern_create()
970 &test, err.msg, (int) err.offset); in nxt_http_route_pattern_create()
974 nxt_alert(task, "nxt_regex_compile(%V) failed %s", &test, err.msg); in nxt_http_route_pattern_create()
996 if (test.length == 0) { in nxt_http_route_pattern_create()
1009 if (test.start[0] == '*') { in nxt_http_route_pattern_create()
1012 test.start++; in nxt_http_route_pattern_create()
1013 test.length--; in nxt_http_route_pattern_create()
1017 tmp.start = test.start; in nxt_http_route_pattern_create()
1019 p = nxt_memchr(test.start, '*', test.length); in nxt_http_route_pattern_create()
1023 tmp.length = test.length; in nxt_http_route_pattern_create()
1026 test.start += test.length; in nxt_http_route_pattern_create()
1027 test.length = 0; in nxt_http_route_pattern_create()
1031 tmp.length = p - test.start; in nxt_http_route_pattern_create()
1034 test.start = p + 1; in nxt_http_route_pattern_create()
1035 test.length -= tmp.length + 1; in nxt_http_route_pattern_create()
1047 end = test.start + test.length; in nxt_http_route_pattern_create()
1049 if (test.length != 0 && end[-1] != '*') { in nxt_http_route_pattern_create()
1052 while (p != test.start) { in nxt_http_route_pattern_create()
1064 test.length -= tmp.length; in nxt_http_route_pattern_create()
1077 tmp.start = test.start; in nxt_http_route_pattern_create()
1164 nxt_str_t *test, nxt_http_route_pattern_type_t type, in nxt_http_route_pattern_slice() argument
1172 ret = nxt_http_route_decode_str(test, encoding); in nxt_http_route_pattern_slice()
1177 start = nxt_mp_nget(slices->mem_pool, test->length); in nxt_http_route_pattern_slice()
1185 nxt_memcpy_upcase(start, test->start, test->length); in nxt_http_route_pattern_slice()
1189 nxt_memcpy_lowcase(start, test->start, test->length); in nxt_http_route_pattern_slice()
1193 nxt_memcpy(start, test->start, test->length); in nxt_http_route_pattern_slice()
1204 slice->length = test->length; in nxt_http_route_pattern_slice()
1567 nxt_http_route_test_t *test, *end; in nxt_http_route_match() local
1569 test = &match->test[0]; in nxt_http_route_match()
1570 end = test + match->items; in nxt_http_route_match()
1572 while (test < end) { in nxt_http_route_match()
1573 switch (test->rule->object) { in nxt_http_route_match()
1575 ret = nxt_http_route_table(r, test->table); in nxt_http_route_match()
1578 ret = nxt_http_route_addr_rule(r, test->addr_rule, r->remote); in nxt_http_route_match()
1585 ret = nxt_http_route_addr_rule(r, test->addr_rule, r->local); in nxt_http_route_match()
1588 ret = nxt_http_route_rule(r, test->rule); in nxt_http_route_match()
1597 test++; in nxt_http_route_match()
2073 u_char *p, *end, *test; in nxt_http_route_pattern() local
2103 test = pattern_slice->start; in nxt_http_route_pattern()
2109 nxt_http_route_memcmp(start, test, test_length, in nxt_http_route_pattern()
2113 if (nxt_http_route_memcmp(start, test, test_length, in nxt_http_route_pattern()
2125 if (nxt_http_route_memcmp(p, test, test_length, in nxt_http_route_pattern()
2136 p = nxt_memstrn(start, end, (char *) test, test_length); in nxt_http_route_pattern()
2139 p = nxt_memcasestrn(start, end, (char *) test, test_length); in nxt_http_route_pattern()
2155 nxt_http_route_memcmp(u_char *start, u_char *test, size_t test_length, in nxt_http_route_memcmp() argument
2161 n = nxt_memcmp(start, test, test_length); in nxt_http_route_memcmp()
2164 n = nxt_memcasecmp(start, test, test_length); in nxt_http_route_memcmp()