39 std::string test_name(__FUNCTION__);
43 auto time_start = std::chrono::high_resolution_clock::now();
45 result |= version !=
"0.4.0";
46 std::chrono::duration<double> time_exec = std::chrono::high_resolution_clock::now() - time_start;
47 TestResult test_result =
TestResult(__PRETTY_FUNCTION__, test_name, result,
"", time_exec.count(), 1);
48 results.push_back(test_result);
54 std::string test_name(__FUNCTION__);
58 auto time_start = std::chrono::high_resolution_clock::now();
60 std::chrono::duration<double> time_exec = std::chrono::high_resolution_clock::now() - time_start;
61 TestResult test_result =
TestResult(__PRETTY_FUNCTION__, test_name, result,
"", time_exec.count(), 1);
62 results.push_back(test_result);
68 std::string test_name(__FUNCTION__);
72 auto time_start = std::chrono::high_resolution_clock::now();
74 std::chrono::duration<double> time_exec = std::chrono::high_resolution_clock::now() - time_start;
75 TestResult test_result =
TestResult(__PRETTY_FUNCTION__, test_name, result,
"", time_exec.count(), 1);
76 results.push_back(test_result);
82 std::string test_name(__FUNCTION__);
86 auto time_start = std::chrono::high_resolution_clock::now();
88 std::chrono::duration<double> time_exec = std::chrono::high_resolution_clock::now() - time_start;
89 TestResult test_result =
TestResult(__PRETTY_FUNCTION__, test_name, result,
"", time_exec.count(), 1);
90 results.push_back(test_result);
96 std::string test_name(__FUNCTION__);
100 auto time_start = std::chrono::high_resolution_clock::now();
102 std::chrono::duration<double> time_exec = std::chrono::high_resolution_clock::now() - time_start;
103 TestResult test_result =
TestResult(__PRETTY_FUNCTION__, test_name, result,
"", time_exec.count(), 1);
104 results.push_back(test_result);
Count of tests taht pass and fail.
void add_result(int result)
Add a tests result.
const char * SVFS_CPP_VERSION_SUFFIX
Version suffix string, could be "rc2" for example.
int SVFS_CPP_VERSION_PATCH
Patch version number.
int SVFS_CPP_VERSION_MINOR
Minor version number.
int SVFS_CPP_VERSION_MAJOR
Major version number.
const char * SVFS_CPP_VERSION
The version as a string.
TestCount test_cpp_version_suffix(t_test_results &results)
std::vector< TestResult > t_test_results
TestCount test_cpp_version_minor(t_test_results &results)
TestCount test_cpp_version_patch(t_test_results &results)
TestCount test_cpp_svfs_all(t_test_results &results)
TestCount test_cpp_version_major(t_test_results &results)
TestCount test_cpp_version(t_test_results &results)
The namespace for all svfsc code.