Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

BOOST_FIXTURE_TEST_CASE ( TableDataSourceCSVTest  ,
TableDataSourceCSVFixture   
)

Definition at line 40 of file testTableDataSourceCSV.h.

References IsValidTableDataSourceTest(), and Impala::Application::MediaTable::TableDataSource::TYPE_INT.

00040                                                                             {
00041     BOOST_REQUIRE(src);
00042 
00043     BOOST_CHECK_GT(src->GetTotalRows(), 0);
00044 
00045     TableDataSourceTests::IsValidTableDataSourceTest(src);
00046 
00047         for(int col=0; col < src->GetColumns(true, true).size(); col++) {
00048                 BOOST_CHECK_GT(src->GetColumns(true, true)[col]->GetName().length(), 0);
00049         }
00050     for(int row=0; row < src->GetTotalRows(); row++) {
00051         for(int col=0; col < src->GetColumns(true, true).size(); col++) {
00052                 if(src->GetColumns(true, true)[col]->GetType() == TableDataSource::TYPE_INT)
00053                         BOOST_CHECK_GE(src->GetIntDataByID(src->GetColumns(true, true)[col]->GetName(), row), 0);
00054         }
00055     }
00056 
00057     BOOST_CHECK_EQUAL(src->GetColumns(true, true).size(), 29);
00058     BOOST_CHECK_EQUAL(src->GetTotalRows(), 18371);
00059 
00060     // TODO: Test CSV specific stuff.
00061 }

Here is the call graph for this function:


Generated on Fri Mar 19 09:38:45 2010 for ImpalaSrc by  doxygen 1.5.1