Skip to content

Commit

Permalink
Add test for missing part of functionality in ProgressBarCounter class.
Browse files Browse the repository at this point in the history
  • Loading branch information
przemek83 committed Dec 21, 2024
1 parent 5e5bb07 commit 8b51854
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/ProgressBarCounterTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ void ProgressBarCounterTest::testFirstUpdatingProgress()
QCOMPARE(progressBar.isRunning(), true);
}

void ProgressBarCounterTest::testSecondUpdatingProgress()
{
ProgressBarCounter progressBar(QLatin1String(""), max_);
progressBar.updateProgress(max_ / 4);
progressBar.updateProgress(max_ / 2);
QCOMPARE(progressBar.isRunning(), true);
}

void ProgressBarCounterTest::testStopping()
{
ProgressBarCounter progressBar(QLatin1String(""), max_);
Expand Down
2 changes: 2 additions & 0 deletions tests/ProgressBarCounterTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ private Q_SLOTS:

static void testFirstUpdatingProgress();

static void testSecondUpdatingProgress();

static void testStopping();

static void testReseting();
Expand Down

0 comments on commit 8b51854

Please sign in to comment.