Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
Gray::cUnitTestCur Struct Reference

#include <cUnitTest.h>

Inheritance diagram for Gray::cUnitTestCur:
Gray::cUnitTest Gray::cUnitTests

Static Public Member Functions

static bool __stdcall TestTypes ()
 

Static Public Attributes

static int sm_nCreatedUnitTests = 0
 Count the cUnitTest objects I have created. NOT just m_aUnitTests. More...
 
static const FILECHAR_tk_TestFiles = _FN("TestFiles")
 
static const StrLen_t k_TEXTBLOB_LEN = 566
 StrT::Len(k_sTextBlob) = 0x236. More...
 
static const cStrConst k_sTextBlob
 a single allocated k_TEXTBLOB_LEN+1 More...
 
static const StrLen_t k_TEXTLINES_QTY = 18
 STRMAX= _countof(k_asTextLines)-1. More...
 
static const cStrConst k_asTextLines [k_TEXTLINES_QTY+1]
 nullptr terminated array of lines of text. More...
 

Detailed Description

static struct for context information about the CURRENT running test. singleton Base class for all derived tests cUnitTest Assume we compile in the same environment as we unit test.

Member Function Documentation

◆ TestTypes()

bool GRAYCALL Gray::cUnitTestCur::TestTypes ( )
static

Check some basic compiler assumptions.

Note
: because c++ has so many compile time options . This should be compiled into any new project context ? make this inline include code ?

Called early in unit tests _MSC_VER, 32 bit, sizeof(bool)=1,sizeof(enum)=4,sizeof(int)=4,sizeof(long)=4 _MSC_VER, 64 bit, sizeof(bool)=1,sizeof(enum)=4,sizeof(int)=4,sizeof(long)=4, GNUC, 32 bit, sizeof(int)=4, sizeof(long)=? GNUC, 64 bit, sizeof(int)=4, sizeof(long)=8

Member Data Documentation

◆ k_asTextLines

const cStrConst Gray::cUnitTestCur::k_asTextLines
static
Initial value:
=
{
CSTRCONST("four"),
CSTRCONST("one"),
CSTRCONST("money"),
CSTRCONST("two"),
CSTRCONST("red"),
CSTRCONST("blue"),
CSTRCONST("get"),
CSTRCONST("go"),
CSTRCONST("to"),
CSTRCONST("now"),
CSTRCONST("cat"),
CSTRCONST("green"),
CSTRCONST("ready"),
CSTRCONST("three"),
CSTRCONST("show"),
CSTRCONST("shoe"),
CSTRCONST("buckle"),
CSTRCONST("my"),
cStrConst(nullptr,nullptr),
}
#define CSTRCONST(t)
define a const for both Unicode and UTF8 in templates. used at run-time not just compile time.
Definition: StrConst.h:89

nullptr terminated array of lines of text.

◆ k_sTextBlob

const cStrConst Gray::cUnitTestCur::k_sTextBlob
static
Initial value:
"This is a line of test data's\n\n\
\tFour score and seven years ago\n\
Our forefathers brought upon this continent a new nation.\n\
Conceived in liberty and dedicated to the proposition that all\n\
men are created equal. We are now engaged in a great civil war. blah. blah.\n\n\
\tWe the people in order to form a more perfect union\n\
establish justice and ensure domestic tranquility\n\
provide for the common defense\n\
promote the general welfare and\n\
ensure the blessings of liberty, To ourselves and our posterity\n\
do ordain and establish this constitution of the United States of America\n\n")

a single allocated k_TEXTBLOB_LEN+1

◆ k_TestFiles

const FILECHAR_t * Gray::cUnitTestCur::k_TestFiles = _FN("TestFiles")
static

◆ k_TEXTBLOB_LEN

const StrLen_t Gray::cUnitTestCur::k_TEXTBLOB_LEN = 566
static

StrT::Len(k_sTextBlob) = 0x236.

◆ k_TEXTLINES_QTY

const StrLen_t Gray::cUnitTestCur::k_TEXTLINES_QTY = 18
static

◆ sm_nCreatedUnitTests

int Gray::cUnitTestCur::sm_nCreatedUnitTests = 0
static

Count the cUnitTest objects I have created. NOT just m_aUnitTests.


The documentation for this struct was generated from the following files: