1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

clang format apply

This commit is contained in:
Leonid Fedorov
2022-01-21 16:43:49 +00:00
parent 6b6411229f
commit 04752ec546
1376 changed files with 393460 additions and 412662 deletions

View File

@ -32,61 +32,54 @@ using namespace WriteEngine;
class XmlTest : public CppUnit::TestFixture
{
CPPUNIT_TEST_SUITE(XmlTest);
CPPUNIT_TEST(test1);
CPPUNIT_TEST_SUITE( XmlTest );
// XML basic testing
CPPUNIT_TEST(testBasicXMLRead);
/*CPPUNIT_TEST( testAddTreeNode );
// Index tree testing
CPPUNIT_TEST( testTreeGetTestbitValue );
*/
CPPUNIT_TEST_SUITE_END();
CPPUNIT_TEST( test1 );
private:
public:
void setUp()
{
}
// XML basic testing
CPPUNIT_TEST( testBasicXMLRead );
/*CPPUNIT_TEST( testAddTreeNode );
void tearDown()
{
}
// Index tree testing
CPPUNIT_TEST( testTreeGetTestbitValue );
*/
CPPUNIT_TEST_SUITE_END();
void test1()
{
}
void testBasicXMLRead()
{
int rc;
XMLJob myJob;
private:
public:
void setUp()
{
}
void tearDown()
{
}
void test1()
{
}
void testBasicXMLRead()
{
int rc;
XMLJob myJob;
rc = myJob.loadJobXmlFile( "../test/bulk/job/Job_127.xml" );
CPPUNIT_ASSERT( rc == NO_ERROR );
myJob.printJobInfo();
}
rc = myJob.loadJobXmlFile("../test/bulk/job/Job_127.xml");
CPPUNIT_ASSERT(rc == NO_ERROR);
myJob.printJobInfo();
}
};
CPPUNIT_TEST_SUITE_REGISTRATION( XmlTest );
CPPUNIT_TEST_SUITE_REGISTRATION(XmlTest);
#include <cppunit/extensions/TestFactoryRegistry.h>
#include <cppunit/ui/text/TestRunner.h>
int main( int argc, char** argv)
int main(int argc, char** argv)
{
CppUnit::TextUi::TestRunner runner;
CppUnit::TestFactoryRegistry& registry = CppUnit::TestFactoryRegistry::getRegistry();
runner.addTest( registry.makeTest() );
bool wasSuccessful = runner.run( "", false );
return (wasSuccessful ? 0 : 1);
CppUnit::TextUi::TestRunner runner;
CppUnit::TestFactoryRegistry& registry = CppUnit::TestFactoryRegistry::getRegistry();
runner.addTest(registry.makeTest());
bool wasSuccessful = runner.run("", false);
return (wasSuccessful ? 0 : 1);
}