xo-alloc2/utest/TestUtil.cpp
Roland Conybeare 908c4908c5 xo-alloc2: + utest harness for catch2
accept additional commandline arguments
2026-05-19 08:27:10 -04:00

24 lines
483 B
C++

/** @file TestUtil.cpp
*
* @author Roland Conybeare, May 2026
**/
#include "TestUtil.hpp"
#include <catch2/catch.hpp>
namespace xo {
UtestConfig *
UtestConfig::instance() {
static UtestConfig s_instance;
return &s_instance;
};
scope
Utest::ut_scope() {
return scope(XO_DEBUG(UtestConfig::instance()->debug_flag()),
xtag("name", Catch::getResultCapture().getCurrentTestName()));
}
}
/* end TestUtil.cpp */