MCPcopy Create free account
hub / github.com/bblanchon/ArduinoJson / testCodepoint

Function testCodepoint

extras/tests/Misc/Utf8.cpp:12–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10using namespace ArduinoJson::detail;
11
12static void testCodepoint(uint32_t codepoint, std::string expected) {
13 ResourceManager resources;
14 StringBuilder str(&resources);
15 str.startString();
16
17 CAPTURE(codepoint);
18 Utf8::encodeCodepoint(codepoint, str);
19
20 REQUIRE(str.str().c_str() == expected);
21}
22
23TEST_CASE("Utf8::encodeCodepoint()") {
24 SECTION("U+0000") {

Callers 1

Utf8.cppFile · 0.85

Calls 3

encodeCodepointFunction · 0.85
c_strMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected