• Home
  • Raw
  • Download

Lines Matching refs:test_format

72 static void test_format(const char *format, int32_t bufCap, int32_t indent,   in test_format()  function
300 test_format("hello, world", 50, 0, "hello, world", __LINE__); in TestTraceAPI()
301 test_format("hello, world", 50, 4, " hello, world", __LINE__); in TestTraceAPI()
302 test_format("hello, world", 3, 0, "hello, world", __LINE__); in TestTraceAPI()
304 test_format("a character %c", 50, 0, "a character x", __LINE__, 'x'); in TestTraceAPI()
305 test_format("a string %s ", 50, 0, "a string hello ", __LINE__, "hello"); in TestTraceAPI()
306 test_format("uchars %S ", 50, 0, "uchars 41fe 0042 0043 0000 ", __LINE__, s1, -1); in TestTraceAPI()
307 test_format("uchars %S ", 50, 0, "uchars 41fe 0042 ", __LINE__, s1, 2); in TestTraceAPI()
309 test_format("a byte %b--", 50, 0, "a byte dd--", __LINE__, 0xdd); in TestTraceAPI()
310 test_format("a 16 bit val %h", 50, 0, "a 16 bit val 1234", __LINE__, 0x1234); in TestTraceAPI()
311 test_format("a 32 bit val %d...", 50, 0, "a 32 bit val 6789abcd...", __LINE__, 0x6789abcd); in TestTraceAPI()
312 test_format("a 64 bit val %l", 50, 0, "a 64 bit val 123456780abcdef0" in TestTraceAPI()
317 test_format("a 32 bit ptr %p", 50, 0, "a 32 bit ptr deadbeef", __LINE__, ptr); in TestTraceAPI()
320 test_format("a 64 bit ptr %p", 50, 0, "a 64 bit ptr 1000200030004000", __LINE__, ptr); in TestTraceAPI()
328test_format("a 128 bit ptr %p", 50, 0, "a 128 bit ptr 10002000300040005000600070008000", __LINE__,… in TestTraceAPI()
334 test_format("%vc", 100, 0, "abc[ffffffff]", __LINE__, "abc", -1); in TestTraceAPI()
335 test_format("%vs", 100, 0, "s1\ns2\n[00000002]", __LINE__, a1, 2); in TestTraceAPI()
336 test_format("%vs", 100, 4, " s1\n s2\n [00000002]", __LINE__, a1, 2); in TestTraceAPI()
338 test_format("%vb", 100, 0, "41 42 43 [00000003]", __LINE__, "\x41\x42\x43", 3); in TestTraceAPI()
341 test_format("Null string - %s", 50, 0, "Null string - *NULL*", __LINE__, NULL); in TestTraceAPI()
342 test_format("Null string - %S", 50, 0, "Null string - *NULL*", __LINE__, NULL, -1); in TestTraceAPI()
343test_format("Null vector - %vc", 50, 0, "Null vector - *NULL* [00000002]", __LINE__, NULL, 2); in TestTraceAPI()
344test_format("Null vector - %vC", 50, 0, "Null vector - *NULL* [00000002]", __LINE__, NULL, 2); in TestTraceAPI()
345test_format("Null vector - %vd", 50, 0, "Null vector - *NULL* [00000002]", __LINE__, NULL, 2); in TestTraceAPI()