/
thomas-king
/
Scanner
Обзор
Документация
Войти
/
thomas-king
/
Scanner
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
include/UnitTests/TestCase.h
43 строки
697 B
Ace Rodstin
Replace GoogleTest with UnitTest.
02 ноя 2023, 18:07
02 ноя 2023, 18:07
8350eca
Код
Авторство
О чём код?
// // TestCase.h // UnitTests // // Created by Ace Rodstin on 11/1/23. // Updated by Ace Rodstin on 11/2/23. // // Copyright © 2023 Ace Rodstin. All rights reserved. // #ifndef UNIT_TESTS_TEST_CASE_HEADER_FILE #define UNIT_TESTS_TEST_CASE_HEADER_FILE #include <string> #include <functional> #include <iostream> #include <cmath> #include <optional> using namespace std; namespace unit_tests { class TestCase { public: using Id = string; using Test = function<void ()>; static bool isSuccess; TestCase(Id id, Test test); Id getId() const; void run(); private: const Id id; const Test test; }; } #endif