scenario_simulator_v2 C++ API
test_case.hpp
Go to the documentation of this file.
1 // Copyright 2015 TIER IV, Inc. All rights reserved.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #ifndef JUNIT_EXPORTER__TEST_CASE_HPP_
16 #define JUNIT_EXPORTER__TEST_CASE_HPP_
17 
19 #include <string>
20 #include <unordered_map>
21 
22 namespace junit
23 {
24 struct TestCase
25 {
26  explicit TestCase(
27  const std::string & name, //
28  const std::string & classname, //
29  const double & time, //
30  const TestResult & result, //
31  const std::string & type = "untyped", //
32  const std::string & description = "")
33  : name(name),
35  time(time),
36  result(result),
37  type(type),
39  {
40  }
41 
45  const double time;
49 };
50 } // namespace junit
51 
52 #endif // JUNIT_EXPORTER__TEST_CASE_HPP_
Definition: test_case.hpp:23
TestResult
Definition: test_result.hpp:20
std::string string
Definition: junit5.hpp:26
Definition: test_case.hpp:25
const std::string classname
Definition: test_case.hpp:44
const double time
Definition: test_case.hpp:45
const std::string description
Definition: test_case.hpp:48
const std::string test_suite
Definition: test_case.hpp:43
const TestResult result
Definition: test_case.hpp:46
const std::string name
Definition: test_case.hpp:42
TestCase(const std::string &name, const std::string &classname, const double &time, const TestResult &result, const std::string &type="untyped", const std::string &description="")
Definition: test_case.hpp:26
const std::string type
Definition: test_case.hpp:47