mirror of
https://github.com/usatiuk/backup.git
synced 2025-10-26 17:37:47 +01:00
16 lines
288 B
C++
16 lines
288 B
C++
//
|
|
// Created by Stepan Usatiuk on 13.04.2023.
|
|
//
|
|
|
|
#include "Test.h"
|
|
|
|
#include <utility>
|
|
|
|
Test::Test(std::string name, std::function<bool()> test)
|
|
: Runnable(std::move(name)), test(std::move(test)) {}
|
|
|
|
bool Test::run(std::ostream &out) {
|
|
return test();
|
|
}
|
|
|
|
Test::~Test() = default; |