MCPcopy Create free account
hub / github.com/DaveGamble/cJSON / parse_string_should_parse_strings

Function parse_string_should_parse_strings

tests/parse_string.c:73–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71
72
73static void parse_string_should_parse_strings(void)
74{
75 assert_parse_string("\"\"", "");
76 assert_parse_string(
77 "\" !\\\"#$%&'()*+,-./\\/0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_'abcdefghijklmnopqrstuvwxyz{|}~\"",
78 " !\"#$%&'()*+,-.//0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_'abcdefghijklmnopqrstuvwxyz{|}~");
79 assert_parse_string(
80 "\"\\\"\\\\\\/\\b\\f\\n\\r\\t\\u20AC\\u732b\"",
81 "\"\\/\b\f\n\r\t€猫");
82 reset(item);
83 assert_parse_string("\"\b\f\n\r\t\"", "\b\f\n\r\t");
84 reset(item);
85}
86
87static void parse_string_should_parse_utf16_surrogate_pairs(void)
88{

Callers

nothing calls this directly

Calls 2

assert_parse_stringFunction · 0.85
resetFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…