Ejemplo n.º 1
0
XMLBuilder&
XMLTestListenerImpl::
createTestCaseElem(const TestCaseInfoReader* testcase)
{
	return testSuiteElement->element("testcase")
		.attribute("name", testcase->getName())
		.attribute("fixture", testcase->getNameOfFixture())
		.attribute("time", toValStr(0))
		.attribute("filename", testcase->getFileName());
}
Ejemplo n.º 2
0
void XMLTestListenerImpl::
endTestSuite(TestSuiteInfoReader* suite)
{
	testSuiteElement->attribute("name", suite->getName())
		.attribute("tests", toValStr(testSuiteResultReporter->getNumberOfTestCases(suite)))
		.attribute("fixtures", toValStr(testSuiteResultReporter->getNumberOfFixtures(suite)))
		.attribute("crashes", toValStr(testSuiteResultReporter->getNumberOfCrashedTestCases(suite)))
		.attribute("skips",   toValStr(testSuiteResultReporter->getNumberOfSkippedTestCases(suite)))
		.attribute("errors", toValStr(testSuiteResultReporter->getNumberOfErrorTestCases(suite)))
		.attribute("failures", toValStr(testSuiteResultReporter->getNumberOfFailedTestCases(suite)));
}
Ejemplo n.º 3
0
std::string toString(long double d)
{ return toValStr(d); }
Ejemplo n.º 4
0
std::string toString(double f)
{ return toValStr(f); }
Ejemplo n.º 5
0
std::string toString(float f)
{ return toValStr(f); }
Ejemplo n.º 6
0
std::string toString(unsigned long l)
{ return toValStr(l); }
Ejemplo n.º 7
0
std::string toString(long l)
{ return toValStr(l); }
Ejemplo n.º 8
0
std::string toString(unsigned int i)
{ return toValStr(i); }
Ejemplo n.º 9
0
std::string toString(int i)
{ return toValStr(i); }
Ejemplo n.º 10
0
std::string toString(unsigned short s)
{ return toValStr(s); }
Ejemplo n.º 11
0
std::string toString(short s)
{ return toValStr(s); }
Ejemplo n.º 12
0
std::string toString(unsigned char c)
{ return toValStr(c); }
Ejemplo n.º 13
0
std::string toString(char c)
{ return toValStr(c); }
Ejemplo n.º 14
0
std::string toHexAndDecStr(T val)
{
	oss_t oss;
	oss << toHexStr(val) << "/" << toValStr(val);
	return oss.str();
}
Ejemplo n.º 15
0
std::string toValStr(unsigned char val)
{ return toValStr((unsigned int)val); }
Ejemplo n.º 16
0
std::string toValStr(char val)
{ return toValStr((int)val); }