MCPcopy Create free account
hub / github.com/ElementsProject/lightning / test_utf8

Function test_utf8

ccan/ccan/utf8/test/run-decode.c:98–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98static void
99test_utf8(const char *src, size_t len, int exp_err, unsigned line) {
100 int got_err;
101
102 assert(len <= 255);
103
104 got_err = utf8_check(src, len);
105
106 ok(got_err == exp_err, "Got result %i, expected %i at line %u",
107 got_err, exp_err, line);
108}
109
110#define TEST_UTF8(src, len, exp) \
111 test_utf8(src, len, exp, __LINE__)

Callers

nothing calls this directly

Calls 1

utf8_checkFunction · 0.70

Tested by

no test coverage detected