xo-umbrella2/xo-testutil/include/xo/testutil/UtestAppStart.hpp
Roland Conybeare 5a06bced3b git subrepo clone git@github.com:rconybea/xo-testutil.git xo-testutil
subrepo:
  subdir:   "xo-testutil"
  merged:   "281418da"
upstream:
  origin:   "git@github.com:rconybea/xo-testutil.git"
  branch:   "main"
  commit:   "281418da"
git-subrepo:
  version:  "0.4.9"
  origin:   "???"
  commit:   "???"
2026-06-06 21:50:26 -04:00

30 lines
641 B
C++

/** @file UtestAppStart.hpp
*
* @author Roland Conybeare, May 2026
**/
#pragma once
namespace xo {
/** @brief Startup sequence for a unit test
*
* Standard unit test startup sequence
**/
class UtestAppStart {
public:
explicit UtestAppStart(const char * app_name) : app_name_{app_name} {}
/**
* Parse program arguments; recognize XO test arguments,
* sending remainder to catch2; do subsystem initialization
**/
int run(int argc, char * argv[]);
private:
const char * app_name_ = "";
};
} /*namespace xo*/
/* end UtestAppStart.hpp */