예제 #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());
}
예제 #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)));
}
예제 #3
0
std::string toString(long double d)
{ return toValStr(d); }
예제 #4
0
std::string toString(double f)
{ return toValStr(f); }
예제 #5
0
std::string toString(float f)
{ return toValStr(f); }
예제 #6
0
std::string toString(unsigned long l)
{ return toValStr(l); }
예제 #7
0
std::string toString(long l)
{ return toValStr(l); }
예제 #8
0
std::string toString(unsigned int i)
{ return toValStr(i); }
예제 #9
0
std::string toString(int i)
{ return toValStr(i); }
예제 #10
0
std::string toString(unsigned short s)
{ return toValStr(s); }
예제 #11
0
std::string toString(short s)
{ return toValStr(s); }
예제 #12
0
std::string toString(unsigned char c)
{ return toValStr(c); }
예제 #13
0
std::string toString(char c)
{ return toValStr(c); }
예제 #14
0
std::string toHexAndDecStr(T val)
{
	oss_t oss;
	oss << toHexStr(val) << "/" << toValStr(val);
	return oss.str();
}
예제 #15
0
std::string toValStr(unsigned char val)
{ return toValStr((unsigned int)val); }
예제 #16
0
std::string toValStr(char val)
{ return toValStr((int)val); }