diff options
author | Jack Lloyd <[email protected]> | 2017-10-24 13:58:41 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-10-24 13:59:34 -0400 |
commit | c2830ddf08b41a9f5f2a472e0cc488c9c358fdb2 (patch) | |
tree | 02799f4ca7da4fdf34068f95c472424a796a7063 /src/tests/tests.cpp | |
parent | 7edec05c6056ab890a70eaf9f5c7a73321581ede (diff) |
Inline Test::run_test into only caller
Diffstat (limited to 'src/tests/tests.cpp')
-rw-r--r-- | src/tests/tests.cpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/tests/tests.cpp b/src/tests/tests.cpp index 7c4e8a258..3d937b9de 100644 --- a/src/tests/tests.cpp +++ b/src/tests/tests.cpp @@ -506,44 +506,6 @@ Test* Test::get_test(const std::string& test_name) return nullptr; } -//static -std::vector<Test::Result> Test::run_test(const std::string& test_name, bool fail_if_missing) - { - std::vector<Test::Result> results; - - try - { - if(Test* test = get_test(test_name)) - { - std::vector<Test::Result> test_results = test->run(); - results.insert(results.end(), test_results.begin(), test_results.end()); - } - else - { - Test::Result result(test_name); - if(fail_if_missing) - { - result.test_failure("Test missing or unavailable"); - } - else - { - result.test_note("Test missing or unavailable"); - } - results.push_back(result); - } - } - catch(std::exception& e) - { - results.push_back(Test::Result::Failure(test_name, e.what())); - } - catch(...) - { - results.push_back(Test::Result::Failure(test_name, "unknown exception")); - } - - return results; - } - // static member variables of Test Botan::RandomNumberGenerator* Test::m_test_rng = nullptr; std::string Test::m_data_dir; |