25 #ifndef WDATASETCSV_TEST_H
26 #define WDATASETCSV_TEST_H
32 #include <cxxtest/TestSuite.h>
34 #include "../WDataSetCSV.h"
61 std::vector< std::string > vecHeader;
62 std::vector< std::string > vecData;
68 vecHeader.push_back(
"cell00" );
69 vecHeader.push_back(
"cell01" );
73 for(
int idx = 0; idx < 5; idx++ )
76 vecData.push_back(
"cell"+ std::to_string( idx ) +
"0" );
77 vecData.push_back(
"cell"+ std::to_string( idx ) +
"1" );
78 m_data->push_back( vecData );
test class of the WDataSetCSV class
WDataSetCSV::ContentSPtr m_data
WDataSetCSV::ContentSPtr object, represents the data, while creation of csvDataSet.
void testGetData()
Test getData() method.
void setUp()
setUp method, runs before each test
WDataSetCSV::ContentSPtr m_header
WDataSetCSV::ContentSPtr object, represents the header, while creation of csvDataSet.
void tearDown()
tearDown method, runs after each test
WDataSetCSV csvDataSet
WDataSetCSV object, which is created during the tests.
void testGetHeader()
Test getHeader() method.
Represents a CSV dataset.
std::shared_ptr< std::vector< std::vector< std::string > > > ContentSPtr
represents a pointer to the Content
WDataSetCSV::ContentSPtr getData()
Getter method to receive csv data.
WDataSetCSV::ContentSPtr getHeader()
Getter method to receive csv header.
std::vector< std::vector< std::string > > Content
represents a vector containing a vector of strings.