ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EventDataVisualizationTests.cpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file EventDataVisualizationTests.cpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2020 CERN for the benefit of the Acts project
4 //
5 // This Source Code Form is subject to the terms of the Mozilla Public
6 // License, v. 2.0. If a copy of the MPL was not distributed with this
7 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 
9 #include <boost/test/tools/output_test_stream.hpp>
10 #include <boost/test/unit_test.hpp>
11 
12 #include <fstream>
13 #include <iostream>
14 
19 #include "VisualizationTester.hpp"
20 
21 namespace Acts {
22 
23 namespace Test {
24 
25 BOOST_AUTO_TEST_SUITE(Visualization)
26 
27 BOOST_AUTO_TEST_CASE(EventDataVisualizationObj) {
28  ObjVisualization obj;
29  auto objTest = EventDataVisualization::test(obj);
30  auto objErrors = testObjString(objTest);
31  BOOST_CHECK(objErrors.size() == 0);
32  for (auto objerr : objErrors) {
33  std::cout << objerr << std::endl;
34  }
35 }
36 
37 BOOST_AUTO_TEST_CASE(EventDataVisualizationPly) {
38  PlyVisualization ply;
39  auto plyTest = EventDataVisualization::test(ply);
40  auto plyErrors = testPlyString(plyTest);
41  BOOST_CHECK(plyErrors.size() == 0);
42  for (auto plyerr : plyErrors) {
43  std::cout << plyerr << std::endl;
44  }
45 }
46 
47 BOOST_AUTO_TEST_SUITE_END()
48 
49 } // namespace Test
50 } // namespace Acts