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

Function TEST_F

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

Source from the content-addressed store, hash-verified

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