Skip to content
Snippets Groups Projects
Commit 2375f749 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

rm acapability of printing test catalog

not for end users anyway; developer can do differently
parent e081c65f
No related branches found
No related tags found
No related merge requests found
......@@ -374,11 +374,3 @@ bool StandardTestCatalogue::contains(const std::string& test_name)
{
return m_catalogue.find(test_name) != m_catalogue.end();
}
void StandardTestCatalogue::printCatalogue(std::ostream& ostr) const
{
for (auto it : m_catalogue) {
ostr << StringUtils::padRight(it.second.m_test_name, 40) << " | ";
ostr << StringUtils::padRight(it.second.m_test_description, 65) << "\n";
}
}
......@@ -32,8 +32,6 @@ public:
bool contains(const std::string& test_name);
void printCatalogue(std::ostream& ostr) const;
private:
void add(const std::string& test_name, const std::string& test_description,
const std::string& simulation_name, const std::string& sample_builder_name,
......
......@@ -25,13 +25,6 @@ StandardTestInfo TestUtils::testInfo(int argc, char** argv)
std::string test_name = argc > 1 ? std::string(argv[1]) : std::string();
if (!catalogue.contains(test_name)) {
std::cout << "There is no test named '" << test_name << "'\n";
std::cout << "Available tests:\n";
catalogue.printCatalogue(std::cout);
return StandardTestInfo();
}
return catalogue.testInfo(test_name);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment