tests: make the offline tests aware of the current terminals row count (#2105)

This fixes the hideous output when your terminal would be too small to
hold all the threads.
This commit is contained in:
Tyler Wilding
2023-01-07 10:35:12 -05:00
committed by GitHub
parent f699675ede
commit 2f4146d469
12 changed files with 149 additions and 27 deletions
+11
View File
@@ -0,0 +1,11 @@
#include <string>
namespace str_util {
bool contains(const std::string& s, const std::string& substr);
bool starts_with(const std::string& s, const std::string& prefix);
std::string ltrim(const std::string& s);
std::string rtrim(const std::string& s);
std::string trim(const std::string& s);
int line_count(const std::string& str);
bool valid_regex(const std::string& regex);
} // namespace str_util