Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Namespaces | Classes | Functions
shamtest Namespace Reference

namespace containing stuff related to the test library More...

Namespaces

namespace  details
 implementation details of the test library
 

Classes

struct  TestConfig
 Configuration of the test runner. More...
 

Functions

int run_all_tests (int argc, char *argv[], TestConfig cfg)
 run all the tests
 
void gen_test_list (std::string_view outfile)
 output test list to a file
 
shamtest::details::TestAssertListasserts ()
 current test asserts
 
shamtest::details::TestDataListtest_data ()
 current test data
 
std::string & test_tex_out ()
 Get current tex output from a test.
 

Detailed Description

namespace containing stuff related to the test library

namespace for the test system

Function Documentation

◆ asserts()

shamtest::details::TestAssertList & shamtest::asserts ( )
inline

current test asserts

Returns
shamtest::details::TestAssertList& reference to the test asserts

Definition at line 103 of file shamtest.hpp.

◆ run_all_tests()

int shamtest::run_all_tests ( int  argc,
char *  argv[],
TestConfig  cfg 
)

run all the tests

Parameters
argcmain argc
argvmain argv
cfgtest run configuration
Returns
int exit code

◆ test_data()

shamtest::details::TestDataList & shamtest::test_data ( )
inline

current test data

Returns
shamtest::details::TestAssertList& reference to the test datas

Definition at line 112 of file shamtest.hpp.

◆ test_tex_out()

std::string & shamtest::test_tex_out ( )
inline

Get current tex output from a test.

Definition at line 117 of file shamtest.hpp.