MCPcopy Create free account
hub / github.com/arvidn/libtorrent / test_parse_utf8

Function test_parse_utf8

test/test_utf8.cpp:59–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59void test_parse_utf8(lt::string_view utf8)
60{
61 int len;
62 std::int32_t cp;
63 std::tie(cp, len) = parse_utf8_codepoint(utf8);
64 TEST_EQUAL(len, int(utf8.size()));
65
66 std::string out;
67 append_utf8_codepoint(out, cp);
68 TEST_EQUAL(out, utf8);
69}
70
71void parse_error(lt::string_view utf8)
72{

Callers 1

TORRENT_TESTFunction · 0.85

Calls 3

parse_utf8_codepointFunction · 0.85
append_utf8_codepointFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected