mirror of
https://github.com/usatiuk/backup.git
synced 2025-10-27 01:37:49 +01:00
init
This commit is contained in:
16
tests/utils/Test.cpp
Normal file
16
tests/utils/Test.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// 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;
|
||||
Reference in New Issue
Block a user