OpenWalnut  1.5.0dev
Public Member Functions | List of all members
WReaderCSVTest Class Reference

Test class of WReaderCSV class. More...

#include <WReaderCSV_test.h>

+ Inheritance diagram for WReaderCSVTest:
+ Collaboration diagram for WReaderCSVTest:

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...
 

Detailed Description

Test class of WReaderCSV class.

Definition at line 39 of file WReaderCSV_test.h.

Member Function Documentation

◆ testCRLFLineEnding()

void WReaderCSVTest::testCRLFLineEnding ( )
inline

check \r\n line endings

Definition at line 194 of file WReaderCSV_test.h.

References WReaderCSV::read().

+ Here is the call graph for this function:

◆ testCRLineEnding()

void WReaderCSVTest::testCRLineEnding ( )
inline

check \r line endings

Definition at line 134 of file WReaderCSV_test.h.

References WReaderCSV::read().

+ Here is the call graph for this function:

◆ testEmptyColumns()

void WReaderCSVTest::testEmptyColumns ( )
inline

Empty columns should not prevent the reader from reading all columns.

Definition at line 224 of file WReaderCSV_test.h.

References WReaderCSV::read().

+ Here is the call graph for this function:

◆ testEmptyCSV()

void WReaderCSVTest::testEmptyCSV ( )
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().

+ Here is the call graph for this function:

◆ testInvalidColumnNumber()

void WReaderCSVTest::testInvalidColumnNumber ( )
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().

+ Here is the call graph for this function:

◆ testLFLineEnding()

void WReaderCSVTest::testLFLineEnding ( )
inline

check \n line endings

Definition at line 164 of file WReaderCSV_test.h.

References WReaderCSV::read().

+ Here is the call graph for this function:

◆ testOnlyHeaderCSV()

void WReaderCSVTest::testOnlyHeaderCSV ( )
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().

+ Here is the call graph for this function:

◆ testValidCSV()

void WReaderCSVTest::testValidCSV ( )
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().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: