OpenWalnut
1.5.0dev
|
Test class of WMProtonData class. More...
#include <WProtonData_test.h>
Public Member Functions | |
void | testConstructor () |
Test the constructor of WProtonData, so no exception is thrown, when input parameters are correct. More... | |
void | testSetCSVHeaderEmpty () |
Tests, if setCSVHeader throws an exception, when the new header is empty. More... | |
void | testSetCSVHeaderNull () |
Tests, if setCSVHeader throws an exception, when parameter is a null pointer. More... | |
void | testSetCSVDataNull () |
Tests, if setCSVHeader throws an exception, when parameter is a null pointer. More... | |
void | testSetterGetterStateIndex () |
Tests the setter and getter for the member variable -m_ColumnnMapSelectedIndex-. More... | |
void | testIsColumnAvailable () |
Tests the availability of the single selections. More... | |
void | testGetColumnIndex () |
Tests the content of -m_columnMap-. More... | |
void | testDetermineColumnTypeByString () |
Tests method -determineColumnTypeByString-. More... | |
void | testDetectColumnTypesFromCsvData () |
Tests internal variable m_columnTypes with the method -getColumnTypes-. More... | |
Private Attributes | |
WDataSetCSV::Content | sampleColumnNames |
A sample of column names. More... | |
WDataSetCSV::Content | sampleDataRows |
A sample of data rows. More... | |
Test class of WMProtonData class.
Definition at line 41 of file WProtonData_test.h.
|
inline |
Test the constructor of WProtonData, so no exception is thrown, when input parameters are correct.
Definition at line 98 of file WProtonData_test.h.
References sampleColumnNames, and sampleDataRows.
|
inline |
Tests internal variable m_columnTypes with the method -getColumnTypes-.
Definition at line 287 of file WProtonData_test.h.
References WProtonData::getColumnTypes(), sampleColumnNames, and sampleDataRows.
|
inline |
Tests method -determineColumnTypeByString-.
Definition at line 240 of file WProtonData_test.h.
References WProtonData::determineColumnTypeByString(), sampleColumnNames, and sampleDataRows.
|
inline |
Tests the content of -m_columnMap-.
Definition at line 220 of file WProtonData_test.h.
References WProtonData::getColumnIndex(), sampleColumnNames, and sampleDataRows.
|
inline |
Tests the availability of the single selections.
Definition at line 184 of file WProtonData_test.h.
References WProtonData::isColumnAvailable(), sampleColumnNames, sampleDataRows, and WProtonData::setStateIndex().
|
inline |
Tests, if setCSVHeader throws an exception, when parameter is a null pointer.
Definition at line 143 of file WProtonData_test.h.
References sampleColumnNames, sampleDataRows, WProtonData::setCSVData(), and WException::what().
|
inline |
Tests, if setCSVHeader throws an exception, when the new header is empty.
Definition at line 109 of file WProtonData_test.h.
References sampleColumnNames, sampleDataRows, WProtonData::setCSVHeader(), and WException::what().
|
inline |
Tests, if setCSVHeader throws an exception, when parameter is a null pointer.
Definition at line 126 of file WProtonData_test.h.
References sampleColumnNames, sampleDataRows, WProtonData::setCSVHeader(), and WException::what().
|
inline |
Tests the setter and getter for the member variable -m_ColumnnMapSelectedIndex-.
Definition at line 160 of file WProtonData_test.h.
References WProtonData::getColumnIndexBySelection(), sampleColumnNames, sampleDataRows, and WProtonData::setStateIndex().
|
private |
A sample of column names.
Definition at line 46 of file WProtonData_test.h.
Referenced by testConstructor(), testDetectColumnTypesFromCsvData(), testDetermineColumnTypeByString(), testGetColumnIndex(), testIsColumnAvailable(), testSetCSVDataNull(), testSetCSVHeaderEmpty(), testSetCSVHeaderNull(), and testSetterGetterStateIndex().
|
private |
A sample of data rows.
Definition at line 61 of file WProtonData_test.h.
Referenced by testConstructor(), testDetectColumnTypesFromCsvData(), testDetermineColumnTypeByString(), testGetColumnIndex(), testIsColumnAvailable(), testSetCSVDataNull(), testSetCSVHeaderEmpty(), testSetCSVHeaderNull(), and testSetterGetterStateIndex().