|
C++ Utilities 5.31.1
Useful C++ classes and routines such as argument parser, IO and conversion utilities
|
#include "../conversion/binaryconversion.h"#include "../conversion/stringbuilder.h"#include "../conversion/stringconversion.h"#include "../tests/testutils.h"#include <cppunit/TestFixture.h>#include <cppunit/extensions/HelperMacros.h>#include <functional>#include <initializer_list>#include <random>#include <sstream>Go to the source code of this file.
Classes | |
| class | ConversionTests |
| The ConversionTests class tests classes and functions provided by the files inside the conversion directory. More... | |
Macros | |
| #define | TEST_TYPE(endianness, function) |
| #define | TEST_CONVERSION(function, endianness) |
| #define | TEST_BE_CONVERSION(function) |
| #define | TEST_LE_CONVERSION(function) |
| #define | TEST_CUSTOM_CONVERSION(vice, versa, endianness, min, max) |
Functions | |
| CPPUNIT_TEST_SUITE_REGISTRATION (ConversionTests) | |
| void | assertEqual (const char *message, const std::uint8_t *expectedValues, size_t expectedSize, const StringData &actualValues) |
| Internally used for string encoding tests to check results. | |
| #define TEST_BE_CONVERSION | ( | function | ) |
Definition at line 132 of file conversiontests.cpp.
| #define TEST_CONVERSION | ( | function, | |
| endianness ) |
Definition at line 127 of file conversiontests.cpp.
Definition at line 136 of file conversiontests.cpp.
| #define TEST_LE_CONVERSION | ( | function | ) |
Definition at line 134 of file conversiontests.cpp.
| #define TEST_TYPE | ( | endianness, | |
| function ) |
Definition at line 125 of file conversiontests.cpp.
| void assertEqual | ( | const char * | message, |
| const std::uint8_t * | expectedValues, | ||
| size_t | expectedSize, | ||
| const StringData & | actualValues ) |
Internally used for string encoding tests to check results.
Definition at line 180 of file conversiontests.cpp.
| CPPUNIT_TEST_SUITE_REGISTRATION | ( | ConversionTests | ) |