NCBI C++ ToolKit
Macros | Functions | Variables
t0019.c File Reference
#include "common.h"
#include <ctype.h>
#include <common/test_assert.h>
+ Include dependency graph for t0019.c:

Go to the source code of this file.

Go to the SVN repository for this file.


#define TEST(s, out)    { cur_result = out; cur_line = __LINE__; cur_test = #s; test s; }


int test (int srctype, const void *srcdata, int srclen, int dsttype, int dstlen)
int err_handler (DBPROCESS *dbproc, int severity, int dberr, int oserr, char *dberrstr, char *oserrstr)
int main (int argc, char *argv[])


static int failure = 0
static const char * cur_result = ""
static const char * cur_test = ""
static int cur_line = 0

Macro Definition Documentation


#define TEST (   s,
)     { cur_result = out; cur_line = __LINE__; cur_test = #s; test s; }

Definition at line 77 of file t0019.c.

Function Documentation

◆ err_handler()

int err_handler ( DBPROCESS dbproc,
int  severity,
int  dberr,
int  oserr,
char *  dberrstr,
char *  oserrstr 

Definition at line 21 of file t0019.c.

References INT_CANCEL, and SYBESMSG.

Referenced by main().

◆ main()

int main ( int  argc,
char *  argv[] 

◆ test()

int test ( int  srctype,
const void *  srcdata,
int  srclen,
int  dsttype,
int  dstlen 

Definition at line 43 of file t0019.c.

References buf, cur_line, cur_result, cur_test, dbconvert(), failure, i, isprint(), len, NULL, out(), and util::strcmp().

Referenced by CDiscrepancyContext::AddTest(), bm::bit_scan_reverse(), BitBlockTransposeTest(), BOOST_AUTO_TEST_CASE(), CDiscrepancyGroup::CDiscrepancyGroup(), CReportItemFactory::Create(), CTableReaderMacro::CreateMacros(), CReportItem::CreateReportItem(), CSubSource::DateFromCollectionDate(), do_check(), xml::document::document(), CTestActionList::DoTests(), CReportNode::Export(), CSubSource::FixDateFormat(), get_dtd_parsing_error_message(), CDllSrcFilesDistr::GetFileLib(), CCdFromFasta::ImportAlignmentData(), init_unit_test_suite(), CDiscrepancyDlg::LoadSettings(), main(), CSRSearch::mergeResults(), CCountries::NewFixCountry(), DistanceSelectDialog::OnBOkClick(), GetFloatingPointDialog::OnButton(), CDiscrepancyConf::OnOk(), CAppDialogs::OpenViewlDialog(), CDiscrepancyProductImpl::OutputXML(), random_minmax(), CReadBlastApp::ReadPreviousAcc(), CSeqTestManager::RegisterTest(), CReadBlastApp::RemoveInterim(), RetrievePartsOfLargeChromosome(), CDiscrepancyContext::RunTests(), s_ContainsWholeWord(), s_SetTrnaProduct(), s_SuppressCountryFix(), CDiscrepancyProductImpl::Summarize(), CDiscrepancyContext::Summarize(), CSerialObject::CMemberIndex< Enum, N >::test(), TestHeapVector(), CSeqTestManager::UnRegisterTest(), CDiscrepancyConf::UpdateList(), CDiscrepancyList::UpdateList(), CDiscrepancyPanel::UpdateTestList(), CNcbiTestsCollector::visit(), CNcbiTestsTreeBuilder::visit(), CNcbiTestApplication::x_ActualizeDeps(), CDockContainer::x_AddClientToHiddenPos(), CSeqAlignCmp::x_CompareOneAlign(), CString_constraint::x_DoesSingleStringMatchConstraint(), CNcbiTestApplication::x_EnsureAllDeps(), CSeedTop::x_GetPatternRanges(), CSeqAlignCmp::x_MeetsEvalueRequirements(), x_NameMatch(), x_ReorderList(), CSeqDBGiListSet::x_TranslateGisFromUserList(), CSeqDBGiListSet::x_TranslateTisFromUserList(), COpenViewDlg::x_UpdateViewPanel(), CSplitQueryTestFixture::x_ValidateQueryInfoForChunk(), and CBedReader::xSetFeatureColorFromItemRgb().

Variable Documentation

◆ cur_line

int cur_line = 0

Definition at line 15 of file t0019.c.

Referenced by test().

◆ cur_result

const char* cur_result = ""

Definition at line 13 of file t0019.c.

Referenced by test().

◆ cur_test

const char* cur_test = ""

Definition at line 14 of file t0019.c.

Referenced by test().

◆ failure

int failure = 0
Modified on Fri Dec 01 04:45:18 2023 by rev. 669887