QuickCppLib 0.10
Eliminate all the tedious hassle when making state-of-the-art C++ 14 - 23 libraries!
Loading...
Searching...
No Matches
unit_test.hpp File Reference
#include "../../config.hpp"
#include <atomic>
#include <chrono>
#include <cstring>
#include <fstream>
#include <iostream>
#include <regex>
#include <vector>
#include "../../console_colours.hpp"
#include <setjmp.h>

Classes

struct  quickcpplib::_xxx::unit_test::requirement_failed
struct  quickcpplib::_xxx::unit_test::test_case
struct  quickcpplib::_xxx::unit_test::test_suite
struct  quickcpplib::_xxx::unit_test::test_suite_registration
struct  quickcpplib::_xxx::unit_test::test_case_registration

Namespaces

namespace  quickcpplib
 The QuickCppLib namespace.
namespace  quickcpplib::_xxx
 Per commit unique namespace to prevent different git submodule versions clashing.
namespace  quickcpplib::_xxx::unit_test

Macros

#define QUICKCPPLIB_BOOST_UNIT_TEST_IMPL   0
#define QUICKCPPLIB_BOOST_UNIT_TEST_FAIL   longjmp(QUICKCPPLIB_NAMESPACE::unit_test::test_case_failed(), 1)
#define QUICKCPPLIB_BOOST_UNIT_CHECK_FAIL(type, expr)
#define QUICKCPPLIB_BOOST_UNIT_CHECK_PASS(type, expr)
#define QUICKCPPLIB_BOOST_UNIT_REQUIRE_FAIL(type, expr)
#define QUICKCPPLIB_BOOST_UNIT_REQUIRE_PASS(type, expr)
#define BOOST_TEST_MESSAGE(msg)
#define BOOST_TEST_CASE_SKIPPED(reason)
 Marks the running test case as SKIPPED, giving the reason.
#define BOOST_WARN_MESSAGE(pred, msg)
#define BOOST_FAIL(msg)
#define BOOST_CHECK_MESSAGE(pred, msg)
#define BOOST_CHECK(expr)
#define BOOST_CHECK_EQUAL(expr1, expr2)
#define BOOST_CHECK_THROWS(expr)
#define BOOST_CHECK_THROW(expr, type)
#define BOOST_CHECK_NO_THROW(expr)
#define BOOST_REQUIRE(expr)
#define BOOST_REQUIRE_THROWS(expr)
#define BOOST_CHECK_REQUIRE(expr, type)
#define BOOST_REQUIRE_NO_THROW(expr)
#define BOOST_AUTO_TEST_SUITE3(a, b)
#define BOOST_AUTO_TEST_SUITE2(a, b)
#define BOOST_AUTO_TEST_SUITE(name)
#define BOOST_AUTO_TEST_SUITE_END()
#define QUICKCPPLIB_BOOST_UNIT_TEST_CASE_NAME(name)
#define QUICKCPPLIB_BOOST_UNIT_TEST_CASE_UNIQUE(prefix)
#define BOOST_AUTO_TEST_CASE2(test_name, desc, func_name)
#define BOOST_AUTO_TEST_CASE(test_name, desc)
#define QUICKCPPLIB_BOOST_UNIT_TEST_RUN_TESTS(argc, argv)
#define BOOST_BINDLIB_ENABLE_MULTIPLE_DEFINITIONS   inline

Functions

jmp_buf & quickcpplib::_xxx::unit_test::test_case_failed ()
std::vector< test_suite > & quickcpplib::_xxx::unit_test::test_suites ()
test_suite *& quickcpplib::_xxx::unit_test::current_test_suite ()
test_case *& quickcpplib::_xxx::unit_test::current_test_case ()
void quickcpplib::_xxx::unit_test::test_case_skipped (const char *reason)
 Marks the running test case as SKIPPED, giving the reason.
int quickcpplib::_xxx::unit_test::run (int argc, const char *const argv[])
BOOST_BINDLIB_ENABLE_MULTIPLE_DEFINITIONS int main (int argc, const char *const argv[])