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

Function itoa64_Writer_StringBufferVerify

test/perftest/misctest.cpp:827–838  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

825
826template <typename Writer>
827void itoa64_Writer_StringBufferVerify() {
828 rapidjson::StringBuffer sb;
829 Writer writer(sb);
830 for (size_t j = 0; j < randvalCount; j++) {
831 char buffer[32];
832 int64_t x = randval[j] * randval[j];
833 sprintf(buffer, "%" PRIi64, x);
834 writer.WriteInt64(x);
835 ASSERT_STREQ(buffer, sb.GetString());
836 sb.Clear();
837 }
838}
839
840template <typename Writer>
841void itoa64_Writer_InsituStringStreamVerify() {

Callers

nothing calls this directly

Calls 2

WriteInt64Method · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected