• Home
  • Raw
  • Download

Lines Matching refs:teststr

18   char teststr[] = "coap://[::1]/.well-known/core";  in t_parse_uri1()  local
23 result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri); in t_parse_uri1()
42 char teststr[] = "coap://[::1]:8000/.well-known/core"; in t_parse_uri2() local
46 result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri); in t_parse_uri2()
65 char teststr[] = "coap://localhost/?foo&bla=fasel"; in t_parse_uri3() local
69 result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri); in t_parse_uri3()
87 char teststr[] = "coap://:100000"; in t_parse_uri4() local
91 result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri); in t_parse_uri4()
97 char teststr[] = "coap://foo:100000"; in t_parse_uri5() local
101 result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri); in t_parse_uri5()
120 char teststr[] = "coap://134.102.218.2/.well-known/core"; in t_parse_uri6() local
124 result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri); in t_parse_uri6()
143 char teststr[] = "coap://foo.bar:5683/some_resource/with/multiple/segments"; in t_parse_uri7() local
159 result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri); in t_parse_uri7()
184 char teststr[] = "http://example.com/%7E%AB%13"; in t_parse_uri8() local
188 result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri); in t_parse_uri8()
198 char teststr[] = "http://example.com/%x"; in t_parse_uri9() local
202 result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri); in t_parse_uri9()
212 char teststr[] = "/absolute/path"; in t_parse_uri10() local
216 result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri); in t_parse_uri10()
235 char teststr[] = in t_parse_uri11() local
251 result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri); in t_parse_uri11()
277 char teststr[] = "coap://198.51.100.1:61616//%2F//?%2F%2F&?%26"; in t_parse_uri12() local
289 result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri); in t_parse_uri12()
327 uint8_t teststr[] ALIGNED(8) = { in t_parse_uri13() local
335 .max_size = sizeof(teststr), in t_parse_uri13()
337 .token = teststr, in t_parse_uri13()
338 .used_size = sizeof(teststr) in t_parse_uri13()
351 char teststr[] = in t_parse_uri14() local
357 unsigned char buf[sizeof(teststr) + 1]; in t_parse_uri14()
360 result = coap_split_query((unsigned char *)teststr, strlen(teststr), in t_parse_uri14()
364 CU_ASSERT(buf[1] == strlen(teststr) - 13); in t_parse_uri14()
366 CU_ASSERT_NSTRING_EQUAL(buf+2, teststr, strlen(teststr)); in t_parse_uri14()
374 char teststr[] = in t_parse_uri15() local
380 unsigned char buf[sizeof(teststr) - 1]; in t_parse_uri15()
383 result = coap_split_query((unsigned char *)teststr, strlen(teststr), in t_parse_uri15()
390 char teststr[] = in t_parse_uri16() local
398 result = coap_split_query((unsigned char *)teststr, strlen(teststr), in t_parse_uri16()
405 char teststr[] = in t_parse_uri17() local
416 unsigned char buf[sizeof(teststr) + 2]; in t_parse_uri17()
419 result = coap_split_query((unsigned char *)teststr, strlen(teststr), in t_parse_uri17()
423 CU_ASSERT(buf[1] == (((strlen(teststr) - 269) >> 8) & 0xff)); in t_parse_uri17()
424 CU_ASSERT(buf[2] == ((strlen(teststr) - 269) & 0xff)); in t_parse_uri17()
426 CU_ASSERT_NSTRING_EQUAL(buf+3, teststr, strlen(teststr)); in t_parse_uri17()
455 uint8_t teststr[] ALIGNED(8) = { in t_parse_uri19() local
461 .max_size = sizeof(teststr), in t_parse_uri19()
463 .token = teststr, in t_parse_uri19()
464 .used_size = sizeof(teststr) in t_parse_uri19()
476 uint8_t teststr[] ALIGNED(8) = { in t_parse_uri20() local
481 .max_size = sizeof(teststr), in t_parse_uri20()
483 .token = teststr, in t_parse_uri20()
484 .used_size = sizeof(teststr) in t_parse_uri20()
497 uint8_t teststr[] ALIGNED(8) = { in t_parse_uri21() local
502 .max_size = sizeof(teststr), in t_parse_uri21()
504 .token = teststr, in t_parse_uri21()
505 .used_size = sizeof(teststr) in t_parse_uri21()
518 uint8_t teststr[] ALIGNED(8) = { in t_parse_uri22() local
525 .max_size = sizeof(teststr), in t_parse_uri22()
527 .token = teststr, in t_parse_uri22()
528 .used_size = sizeof(teststr) in t_parse_uri22()
540 uint8_t teststr[] ALIGNED(8) = { in t_parse_uri23() local
546 .max_size = sizeof(teststr), in t_parse_uri23()
548 .token = teststr, in t_parse_uri23()
549 .used_size = sizeof(teststr) in t_parse_uri23()
567 …uint8_t teststr[] = { 0x63, 0x6f, 0x61, 0x70, 0x3a, 0x2f, 0x2f, 0x86, 0x63, 0x6f, 0x61, 0x70, 0x3a… in t_parse_uri24() local
572 result = coap_split_path(teststr, sizeof(teststr), buf, &buflen); in t_parse_uri24()