aboutsummaryrefslogtreecommitdiff
path: root/src/libmain
diff options
context:
space:
mode:
authorQyriad <qyriad@qyriad.me>2024-06-19 22:12:24 -0600
committerQyriad <qyriad@qyriad.me>2024-06-20 13:56:53 -0600
commitfd250c51ed14132d79eb1329a4e679d41174e5b8 (patch)
treecc972149df96537cac32c88c1818d2fe8a1bb824 /src/libmain
parente44dcd63c4d96807536cdcf2afb688a537cce9be (diff)
add a basic libmain test for the progress bar rendering
Hooray for leaky abstraction allowing us to test this particular part of the render pipeline. Change-Id: Ie0f251ff874f63324e6a9c6388b84ec6507eeae2
Diffstat (limited to 'src/libmain')
-rw-r--r--src/libmain/progress-bar.hh5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libmain/progress-bar.hh b/src/libmain/progress-bar.hh
index 1ac7ba97b..76e2ed4ff 100644
--- a/src/libmain/progress-bar.hh
+++ b/src/libmain/progress-bar.hh
@@ -13,9 +13,8 @@ constexpr const auto A_LONG_TIME = std::chrono::duration_cast<std::chrono::milli
100 * 365 * std::chrono::seconds(86400)
);
-class ProgressBar : public Logger
+struct ProgressBar : public Logger
{
-private:
struct ActInfo
{
using TimePoint = std::chrono::time_point<std::chrono::steady_clock>;
@@ -66,8 +65,6 @@ private:
bool printBuildLogs = false;
bool isTTY;
-public:
-
ProgressBar(bool isTTY)
: isTTY(isTTY)
{