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

Function TEST

cpp/src/arrow/json/from_string_test.cc:163–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163TEST(TestHelper, JSONArray) {
164 // Test the JSONArray helper func
165 std::string s =
166 JSONArray(123, -4.5, static_cast<int8_t>(-12), static_cast<uint8_t>(34));
167 ASSERT_EQ(s, "[123, -4.5, -12, 34]");
168 s = JSONArray(9223372036854775807LL, 9223372036854775808ULL, -9223372036854775807LL - 1,
169 18446744073709551615ULL);
170 ASSERT_EQ(s,
171 "[9223372036854775807, 9223372036854775808, -9223372036854775808, "
172 "18446744073709551615]");
173}
174
175TEST(TestHelper, SafeSignedAdd) {
176 ASSERT_EQ(0, SafeSignedAdd<int8_t>(-128, -128));

Callers 1

Calls 15

JSONArrayFunction · 0.85
ArrayFromJSONStringFunction · 0.85
FromBitsFunction · 0.85
month_intervalFunction · 0.85
day_time_intervalFunction · 0.85
month_day_nano_intervalFunction · 0.85
fixed_size_binaryFunction · 0.85
AssertJSONDictArrayFunction · 0.85
decimal32Function · 0.85
decimal64Function · 0.85
decimal256Function · 0.85
mapFunction · 0.85

Tested by

no test coverage detected