| 377 | )example"; |
| 378 | |
| 379 | TEST_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 | |
| 396 | TEST_F(TestJSONIntegration, ErrorStates) { |
| 397 | std::string json_path = this->mkstemp(); |
nothing calls this directly
no test coverage detected