Lines Matching refs:teststr

18   char teststr[] = "coap://[::1]/.well-known/core";
23 result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri);
42 char teststr[] = "coap://[::1]:8000/.well-known/core";
46 result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri);
65 char teststr[] = "coap://localhost/?foo&bla=fasel";
69 result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri);
87 char teststr[] = "coap://:100000";
91 result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri);
97 char teststr[] = "coap://foo:100000";
101 result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri);
120 char teststr[] = "coap://134.102.218.2/.well-known/core";
124 result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri);
143 char teststr[] = "coap://foo.bar:5683/some_resource/with/multiple/segments";
159 result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri);
185 char teststr[] = "http://example.com/%7E%AB%13";
190 result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri);
202 char teststr[] = "http://example.com/%x";
207 result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri);
218 char teststr[] = "/absolute/path";
222 result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri);
241 char teststr[] =
257 result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri);
283 char teststr[] = "coap://198.51.100.1:61616//%2F//?%2F%2F&?%26";
295 result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri);
333 uint8_t teststr[] ALIGNED(8) = {
341 .max_size = sizeof(teststr),
343 .token = teststr,
344 .used_size = sizeof(teststr)
357 char teststr[] =
361 /* buf is large enough to hold sizeof(teststr) - 1 bytes content and
363 unsigned char buf[sizeof(teststr) + 1];
366 result = coap_split_query((unsigned char *)teststr, strlen(teststr),
370 CU_ASSERT(buf[1] == strlen(teststr) - 13);
372 CU_ASSERT_NSTRING_EQUAL(buf+2, teststr, strlen(teststr));
380 char teststr[] =
384 /* buf is too small to hold sizeof(teststr) - 1 bytes content and 2
386 unsigned char buf[sizeof(teststr) - 1];
389 result = coap_split_query((unsigned char *)teststr, strlen(teststr),
396 char teststr[] =
404 result = coap_split_query((unsigned char *)teststr, strlen(teststr),
411 char teststr[] =
420 /* buf is large enough to hold sizeof(teststr) - 1 bytes content and
422 unsigned char buf[sizeof(teststr) + 2];
425 result = coap_split_query((unsigned char *)teststr, strlen(teststr),
429 CU_ASSERT(buf[1] == (((strlen(teststr) - 269) >> 8) & 0xff));
430 CU_ASSERT(buf[2] == ((strlen(teststr) - 269) & 0xff));
432 CU_ASSERT_NSTRING_EQUAL(buf+3, teststr, strlen(teststr));
461 uint8_t teststr[] ALIGNED(8) = {
467 .max_size = sizeof(teststr),
469 .token = teststr,
470 .used_size = sizeof(teststr)
482 uint8_t teststr[] ALIGNED(8) = {
487 .max_size = sizeof(teststr),
489 .token = teststr,
490 .used_size = sizeof(teststr)
503 uint8_t teststr[] ALIGNED(8) = {
508 .max_size = sizeof(teststr),
510 .token = teststr,
511 .used_size = sizeof(teststr)
524 uint8_t teststr[] ALIGNED(8) = {
531 .max_size = sizeof(teststr),
533 .token = teststr,
534 .used_size = sizeof(teststr)
546 uint8_t teststr[] ALIGNED(8) = {
552 .max_size = sizeof(teststr),
554 .token = teststr,
555 .used_size = sizeof(teststr)
573 uint8_t teststr[] = { 0x63, 0x6f, 0x61, 0x70, 0x3a, 0x2f, 0x2f, 0x86, 0x63, 0x6f, 0x61, 0x70, 0x3a, 0x2f, 0x2f };
578 result = coap_split_path(teststr, sizeof(teststr), buf, &buflen);