OpenWalnut
1.5.0dev
|
Test class of WReaderCSV class. More...
#include <WReaderCSV_test.h>
Public Member Functions | |
void | testEmptyCSV () |
if an empty CSV file is loaded, a "CSV file is empty!" exception should be thrown More... | |
void | testOnlyHeaderCSV () |
if a CSV file only contains a header row, a "CSV File does not contain data!" exception should be thrown More... | |
void | testInvalidColumnNumber () |
if a CSV file contains rows, whose column count differs from the header, a "Data row count does not equal header count!" exception should be thrown More... | |
void | testValidCSV () |
if a valid CSV file is loaded, no exception should be thrown More... | |
void | testCRLineEnding () |
check \r line endings More... | |
void | testLFLineEnding () |
check \n line endings More... | |
void | testCRLFLineEnding () |
check \r\n line endings More... | |
void | testEmptyColumns () |
Empty columns should not prevent the reader from reading all columns. More... | |
Test class of WReaderCSV class.
Definition at line 39 of file WReaderCSV_test.h.
|
inline |
check \r\n line endings
Definition at line 194 of file WReaderCSV_test.h.
References WReaderCSV::read().
|
inline |
check \r line endings
Definition at line 134 of file WReaderCSV_test.h.
References WReaderCSV::read().
|
inline |
Empty columns should not prevent the reader from reading all columns.
Definition at line 224 of file WReaderCSV_test.h.
References WReaderCSV::read().
|
inline |
if an empty CSV file is loaded, a "CSV file is empty!" exception should be thrown
Definition at line 45 of file WReaderCSV_test.h.
References WException::what().
|
inline |
if a CSV file contains rows, whose column count differs from the header, a "Data row count does not equal header count!" exception should be thrown
Definition at line 74 of file WReaderCSV_test.h.
References WException::what().
|
inline |
check \n line endings
Definition at line 164 of file WReaderCSV_test.h.
References WReaderCSV::read().
|
inline |
if a CSV file only contains a header row, a "CSV File does not contain data!" exception should be thrown
Definition at line 59 of file WReaderCSV_test.h.
References WException::what().
|
inline |
if a valid CSV file is loaded, no exception should be thrown
Definition at line 88 of file WReaderCSV_test.h.
References WReaderCSV::read().