MCPcopy Create free account
hub / github.com/apache/arrow / TEST

Function TEST

cpp/src/arrow/util/simdjson_internal_test.cc:31–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29namespace arrow::internal {
30
31TEST(JsonWriter, SimpleObject) {
32 JsonWriter writer;
33
34 writer.StartObject();
35 writer.Key("a");
36 writer.Int(42);
37 writer.Key("b");
38 writer.String("hello");
39 writer.EndObject();
40
41 ASSERT_OK_AND_ASSIGN(std::string_view json, writer.GetString());
42
43 EXPECT_EQ(json, R"({"a":42,"b":"hello"})");
44}
45
46TEST(JsonWriter, Array) {
47 JsonWriter writer;

Callers

nothing calls this directly

Calls 15

DoubleMethod · 0.80
UintMethod · 0.80
Uint64Method · 0.80
RawValueMethod · 0.80
IntFieldMethod · 0.80
StartObjectMethod · 0.45
KeyMethod · 0.45
IntMethod · 0.45
StringMethod · 0.45
EndObjectMethod · 0.45
StartArrayMethod · 0.45
EndArrayMethod · 0.45

Tested by

no test coverage detected