C++ Utilities  4.17.0
Useful C++ classes and routines such as argument parser, IO and conversion utilities
Public Member Functions | List of all members
IoTests Class Reference

The IoTests class tests classes and methods of the IoUtilities namespace. More...

Inheritance diagram for IoTests:
[legend]
Collaboration diagram for IoTests:
[legend]

Public Member Functions

void setUp ()
 
void tearDown ()
 
void testFailure ()
 Tests workaround for GCC Bug 66145. More...
 
void testBinaryReader ()
 Tests the most important methods of the BinaryReader. More...
 
void testBinaryWriter ()
 Tests the most important methods of the BinaryWriter. More...
 
void testBitReader ()
 Tests the BitReader. More...
 
void testPathUtilities ()
 Tests fileName() and removeInvalidChars(). More...
 
void testIniFile ()
 Tests IniFile. More...
 
void testCopy ()
 Tests CopyHelper. More...
 
void testReadFile ()
 Tests readFile(). More...
 
void testAnsiEscapeCodes ()
 

Detailed Description

The IoTests class tests classes and methods of the IoUtilities namespace.

Definition at line 45 of file iotests.cpp.

Member Function Documentation

◆ setUp()

void IoTests::setUp ( )

Definition at line 85 of file iotests.cpp.

◆ tearDown()

void IoTests::tearDown ( )

Definition at line 89 of file iotests.cpp.

◆ testAnsiEscapeCodes()

void IoTests::testAnsiEscapeCodes ( )

Definition at line 452 of file iotests.cpp.

◆ testBinaryReader()

void IoTests::testBinaryReader ( )

Tests the most important methods of the BinaryReader.

Definition at line 124 of file iotests.cpp.

◆ testBinaryWriter()

void IoTests::testBinaryWriter ( )

Tests the most important methods of the BinaryWriter.

Definition at line 197 of file iotests.cpp.

◆ testBitReader()

void IoTests::testBitReader ( )

Tests the BitReader.

Definition at line 279 of file iotests.cpp.

◆ testCopy()

void IoTests::testCopy ( )

Tests CopyHelper.

Definition at line 394 of file iotests.cpp.

◆ testFailure()

void IoTests::testFailure ( )

Tests workaround for GCC Bug 66145.

See also
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66145
Remarks
For some reason this unit test doesn't pass under Windows (using GCC 8.2.0). However, when testing statically linked binaries manually, it works. So ignore it for now since the workaround will be removed in v5 anyways.

Definition at line 102 of file iotests.cpp.

◆ testIniFile()

void IoTests::testIniFile ( )

Tests IniFile.

Definition at line 353 of file iotests.cpp.

◆ testPathUtilities()

void IoTests::testPathUtilities ( )

Tests fileName() and removeInvalidChars().

Definition at line 320 of file iotests.cpp.

◆ testReadFile()

void IoTests::testReadFile ( )

Tests readFile().

Definition at line 417 of file iotests.cpp.


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