Lines Matching +full:- +full:3
1 /* Copyright (c) 2015-2018 the Civetweb developers
72 /* Copyright (c) 2013-2015 the Civetweb developers */ in START_TEST()
73 /* Copyright (c) 2004-2013 Sergey Lyubka */ in START_TEST()
109 int lenhdr12 = lenreq12 - 4; /* length without body */ in START_TEST()
125 ck_assert_int_eq(-1, get_http_header_len(space, 2)); in START_TEST()
126 ck_assert_int_eq(-1, test_parse_http_request(space, 2, &ri)); in START_TEST()
127 ck_assert_int_eq(-1, test_parse_http_response(space, 2, &respi)); in START_TEST()
131 ck_assert_int_eq(0, get_http_header_len(req1, lenreq1 - 1)); in START_TEST()
135 ck_assert_int_eq(lenreq1 - 1, get_http_header_len(req1 + 1, lenreq1 - 1)); in START_TEST()
136 ck_assert_int_eq(-1, test_parse_http_request(req1 + 1, lenreq1 - 1, &ri)); in START_TEST()
141 ck_assert_int_eq(-1, test_parse_http_response(req1, lenreq1, &respi)); in START_TEST()
149 ck_assert_int_eq(-1, test_parse_http_request(req2, lenreq2, &ri)); in START_TEST()
155 ck_assert_int_eq(-1, test_parse_http_response(req3, lenreq3, &respi)); in START_TEST()
159 * (https://tools.ietf.org/html/rfc7230#section-3.2.4). */ in START_TEST()
160 ck_assert_int_eq(-1, test_parse_http_request(req4, lenreq4, &ri)); in START_TEST()
166 ck_assert_int_eq(-1, test_parse_http_response(req5, lenreq5, &respi)); in START_TEST()
184 ck_assert_int_eq(-1, test_parse_http_request(req8, lenreq8, &ri)); in START_TEST()
190 ck_assert_int_eq(-1, test_parse_http_request(req9, lenreq9, &ri)); in START_TEST()
207 ck_assert_int_eq(-1, test_parse_http_request(req11, lenreq11, &ri)); in START_TEST()
221 /* Copyright (c) 2013-2015 the Civetweb developers */ in START_TEST()
222 /* Copyright (c) 2004-2013 Sergey Lyubka */ in START_TEST()
228 char req4[] = "GET / HTTP/1.1\r\nConnection: keep-alive\r\n\r\n"; in START_TEST()
292 /* Copyright (c) 2013-2015 the Civetweb developers */ in START_TEST()
293 /* Copyright (c) 2004-2013 Sergey Lyubka */ in START_TEST()
295 ck_assert_int_eq(3, match_prefix("/a/", 3, "/a/b/c")); in START_TEST()
296 ck_assert_int_eq(-1, match_prefix("/a/", 3, "/ab/c")); in START_TEST()
297 ck_assert_int_eq(4, match_prefix("/*/", 3, "/ab/c")); in START_TEST()
300 ck_assert_int_eq(2, match_prefix("*/*", 3, "/a/b/c")); in START_TEST()
301 ck_assert_int_eq(5, match_prefix("**/", 3, "/a/b/c")); in START_TEST()
306 ck_assert_int_eq(-1, match_prefix("/a/**.cgi", 9, "/foo/bar/x.cgi")); in START_TEST()
308 ck_assert_int_eq(5, match_prefix("**/", 3, "/a/b/c")); in START_TEST()
309 ck_assert_int_eq(-1, match_prefix("**/$", 4, "/a/b/c")); in START_TEST()
312 ck_assert_int_eq(-1, match_prefix("$", 1, "x")); in START_TEST()
315 ck_assert_int_eq(-1, match_prefix("**/$", 4, "/a/b/c")); in START_TEST()
318 ck_assert_int_eq(-1, match_prefix("**.a$|**.b$", 11, "/a/b.b/")); in START_TEST()
329 /* Copyright (c) 2013-2015 the Civetweb developers */ in START_TEST()
330 /* Copyright (c) 2004-2013 Sergey Lyubka */ in START_TEST()
368 ck_assert_int_eq(3, get_uri_type("http://somewhere/")); in START_TEST()
369 ck_assert_int_eq(3, get_uri_type("https://somewhere/some/file.html")); in START_TEST()
379 /* Copyright (c) 2013-2015 the Civetweb developers */ in START_TEST()
380 /* Copyright (c) 2004-2013 Sergey Lyubka */ in START_TEST()
389 ck_assert(i != 0 || (a.ptr == list && a.len == 3 && b.len == 0)); in START_TEST()
402 /* Copyright (c) 2013-2015 the Civetweb developers */ in START_TEST()
403 /* Copyright (c) 2004-2013 Sergey Lyubka */ in START_TEST()
427 /* Test helper function - adapted from unit_test.c */ in alloc_printf()
428 /* Copyright (c) 2013-2015 the Civetweb developers */ in alloc_printf()
429 /* Copyright (c) 2004-2013 Sergey Lyubka */ in alloc_printf()
463 /* Copyright (c) 2013-2015 the Civetweb developers */ in START_TEST()
464 /* Copyright (c) 2004-2013 Sergey Lyubka */ in START_TEST()
548 /* Copyright (c) 2013-2015 the Civetweb developers */ in START_TEST()
549 /* Copyright (c) 2004-2013 Sergey Lyubka */ in START_TEST()
565 /* Copyright (c) 2013-2018 the Civetweb developers */ in START_TEST()
566 /* Copyright (c) 2004-2013 Sergey Lyubka */ in START_TEST()
583 {"1.2.3", 0, 0}, in START_TEST()
584 {"1.2.3.", 0, 0}, in START_TEST()
601 {"[3ffe:2a00:100:7031::1]:900", 1, 6}, in START_TEST()
609 {"[3ffe:2a00:100:7031::1]:900", 0, 0}, in START_TEST()
651 const char *nonalpha = " !\"#$%&'()*+,-./0123456789:;<=>?@"; in START_TEST()
653 "%20%21%22%23$%25%26%27()%2a%2b,-.%2f0123456789%3a;%3c%3d%3e%3f%40"; in START_TEST()
655 "%20!%22%23%24%25%26'()*%2B%2C-.%2F0123456789%3A%3B%3C%3D%3E%3F%40"; in START_TEST()
679 base64_encode((unsigned char *)alpha, 3, buf); in START_TEST()
710 ck_assert_int_eq(ret, -1); in START_TEST()
717 ck_assert_int_eq(ret, 3); in START_TEST()
796 ck_assert_uint_eq((unsigned char)out[1], 1u ^ 3u); in START_TEST()
798 ck_assert_uint_eq((unsigned char)out[3], 3u ^ 1u); in START_TEST()
817 ck_assert_uint_eq((unsigned long)parse_date_string("1-Jan-1970 00:03:04"), in START_TEST()
828 (unsigned int)tm->tm_mday, in START_TEST()
829 month_names[tm->tm_mon], in START_TEST()
830 (unsigned int)(tm->tm_year + 1900), in START_TEST()
831 (unsigned int)tm->tm_hour, in START_TEST()
832 (unsigned int)tm->tm_min, in START_TEST()
833 (unsigned int)tm->tm_sec); in START_TEST()
852 "%02u-%s-%04u %02u:%02u:%02u", in START_TEST()
853 (unsigned int)tm->tm_mday, in START_TEST()
854 month_names[tm->tm_mon], in START_TEST()
855 (unsigned int)(tm->tm_year + 1900), in START_TEST()
856 (unsigned int)tm->tm_hour, in START_TEST()
857 (unsigned int)tm->tm_min, in START_TEST()
858 (unsigned int)tm->tm_sec); in START_TEST()
895 SHA1_Update(&sha_ctx, (uint8_t *)"abc", 3); in START_TEST()
1084 TCase *const tcase_url_parsing_3 = tcase_create("URL Parsing 3"); in make_private_suite()
1087 TCase *const tcase_internal_parse_3 = tcase_create("Internal Parsing 3"); in make_private_suite()