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

Function TEST_F

cpp/src/arrow/integration/json_integration_test.cc:379–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377)example";
378
379TEST_F(TestJSONIntegration, ConvertAndValidate) {
380 std::string json_path = this->mkstemp();
381 std::string arrow_path = this->mkstemp();
382
383 ASSERT_OK(WriteJson(JSON_EXAMPLE, json_path));
384
385 ASSERT_OK(RunCommand(json_path, arrow_path, "JSON_TO_ARROW"));
386 ASSERT_OK(RunCommand(json_path, arrow_path, "VALIDATE"));
387
388 // Convert and overwrite
389 ASSERT_OK(RunCommand(json_path, arrow_path, "ARROW_TO_JSON"));
390
391 // Convert back to arrow, and validate
392 ASSERT_OK(RunCommand(json_path, arrow_path, "JSON_TO_ARROW"));
393 ASSERT_OK(RunCommand(json_path, arrow_path, "VALIDATE"));
394}
395
396TEST_F(TestJSONIntegration, ErrorStates) {
397 std::string json_path = this->mkstemp();

Callers

nothing calls this directly

Calls 5

WriteJsonFunction · 0.85
RunCommandFunction · 0.85
ConvertJsonToArrowFunction · 0.85
ValidateArrowVsJsonFunction · 0.85
mkstempMethod · 0.80

Tested by

no test coverage detected