MCPcopy Create free account
hub / github.com/Tencent/rapidjson / TestString

Function TestString

test/unittest/readertest.cpp:604–610  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

602
603template <typename Encoding>
604ParseErrorCode TestString(const typename Encoding::Ch* str) {
605 GenericStringStream<Encoding> s(str);
606 BaseReaderHandler<Encoding> h;
607 GenericReader<Encoding, Encoding> reader;
608 reader.template Parse<kParseValidateEncodingFlag>(s, h);
609 return reader.GetParseErrorCode();
610}
611
612TEST(Reader, ParseString_Error) {
613#define TEST_STRING_ERROR(errorCode, str, errorOffset, streamPos)\

Callers

nothing calls this directly

Calls 1

GetParseErrorCodeMethod · 0.45

Tested by

no test coverage detected