A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/unit__test__alt__sample_8cpp_source.html below:

NCBI C++ ToolKit: src/sample/app/unit_test/unit_test_alt_sample.cpp Source File

Go to the documentation of this file.

Go to the SVN repository for this file.

60

cout <<

"Initialization function executed"

<< endl;

68

cout <<

"Finalization function executed"

<< endl;

77

(

"disable_UsingArgs"

,

78  "This is custom sample command line argument that can be " 79  "used by test application to disable the UsingArg test"

);

82

(

"disable_TestTimeout"

,

83  "Do not run TestTimeout test -- used to avoid unwanted failure " 84  "during the daily automated builds. See CHECK_CMD in the Makefile; it" 85  "is also mapped to 'enable_test_timeout' parameter in config file."

);

95

conf_parser->AddSymbol(

"disable_using_args"

,

96

args[

"disable_UsingArgs"

] ?

true

:

false

);

97

conf_parser->AddSymbol(

"enable_test_timeout"

,

98

!args[

"disable_TestTimeout"

]);

120  string

s1 =

"qwerty"

;

121  string

s2 =

"qwerty"

;

124

BOOST_CHECK_EQUAL(

i

, 1);

126

BOOST_REQUIRE_EQUAL(d, 0.123);

138

BOOST_CHECK(s1 ==

"qwerty"

);

140

BOOST_CHECK_EQUAL(s1,

string

(

"qwerty"

));

157

cout <<

"Here is some dummy message"

<< endl;

177  bool

arg_value = args[

"disable_UsingArgs"

];

185

cout <<

"This message will never be printed"

<< endl;

191

cout <<

"This message will be printed only after " 192  "proper editing of *.ini file or after adding command line " 193  "argument --run_test='*DisabledInConfig'"

<< endl;

200  bool

arg_value = args[

"disable_UsingArgs"

];

202

BOOST_CHECK( !arg_value );

static CNcbiApplication * Instance(void)

Singleton method.

virtual const CArgs & GetArgs(void) const

Get parsed command line arguments.

#define ERR_POST(message)

Error posting with file, line number information but without error codes.

#define NCBI_THROW(exception_class, err_code, message)

Generic macro to throw an exception, given the exception class, error code and message string.

void Info(CExceptionArgs_Base &args)

#define NCBITEST_DISABLE(test_name)

Unconditionally disable test case.

#define NCBITEST_DEPENDS_ON(test_name, dep_name)

Add dependency between test test_name and dep_name.

where both of them are integers Note

void SleepSec(unsigned long sec, EInterruptOnSignal onsignal=eRestartOnSignal)

Sleep.

Defines the CNcbiApplication and CAppException classes for creating NCBI applications.

Utility stuff for more convenient using of Boost.Test library.

#define NCBITEST_CHECK_EQUAL(L, R)

#define NCBITEST_CHECK(P)

#define NCBITEST_CHECK_MESSAGE(P, M)

BOOST_AUTO_TEST_CASE_TIMEOUT(TestTimeout, 1)

NCBITEST_INIT_CMDLINE(arg_desc)

NCBITEST_INIT_VARIABLES(conf_parser)

static void s_ThrowSomeException(void)

BOOST_AUTO_TEST_CASE(TestSimpleTools)

static void s_FuncWithoutException(void)


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4