Ocean
Loading...
Searching...
No Matches
Ocean Test IO Serialization Library

The Ocean Test IO Serialization Library provides several functions to test the performance and validation of the serialization functionalities. More...

Collaboration diagram for Ocean Test IO Serialization Library:

Data Structures

class  Ocean::Test::TestIO::TestSerialization::TestDataSample
 This class implements a test for the DataSample class. More...
 
class  Ocean::Test::TestIO::TestSerialization::TestDataSerializer
 This class implements a test for the DataSerializer class. More...
 
class  Ocean::Test::TestIO::TestSerialization::TestDataTimestamp
 This class implements a test for the DataTimestamp class. More...
 
class  Ocean::Test::TestIO::TestSerialization::TestInputDataSerializer
 This class implements a test for the InputDataSerializer class. More...
 
class  Ocean::Test::TestIO::TestSerialization::TestMediaSerializer
 This class implements a test for the MediaSerializer class. More...
 
class  Ocean::Test::TestIO::TestSerialization::TestOutputDataSerializer
 This class implements a test for the OutputDataSerializer class. More...
 
class  Ocean::Test::TestIO::TestSerialization::TestVectorOutputStream
 This class implements a test for the VectorOutputStream class. More...
 

Functions

OCEAN_TEST_IO_SERIALIZATION_EXPORT bool Ocean::Test::TestIO::TestSerialization::testIOSerialization (const double testDuration, Worker &worker, const std::string &testFunctions=std::string())
 Tests the entire IO Serialization library.
 
OCEAN_TEST_IO_SERIALIZATION_EXPORT void Ocean::Test::TestIO::TestSerialization::testIOSerializationAsynchron (const double testDuration, const std::string &testFunctions=std::string())
 Tests the entire IO Serialization library.
 

Detailed Description

The Ocean Test IO Serialization Library provides several functions to test the performance and validation of the serialization functionalities.

The library is platform independent.

Function Documentation

◆ testIOSerialization()

OCEAN_TEST_IO_SERIALIZATION_EXPORT bool Ocean::Test::TestIO::TestSerialization::testIOSerialization ( const double  testDuration,
Worker worker,
const std::string &  testFunctions = std::string() 
)

Tests the entire IO Serialization library.

Parameters
testDurationNumber of seconds for each test, with range (0, infinity)
workerThe worker object to distribute some computation on as many CPU cores as defined in the worker object.
testFunctionsOptional name of the functions to be tested
Returns
True, if the entire test succeeded

◆ testIOSerializationAsynchron()

OCEAN_TEST_IO_SERIALIZATION_EXPORT void Ocean::Test::TestIO::TestSerialization::testIOSerializationAsynchron ( const double  testDuration,
const std::string &  testFunctions = std::string() 
)

Tests the entire IO Serialization library.

This function returns directly as the actual test is invoked in an own thread.
Use this function in intendet for non-console applications like e.g., mobile devices.

Parameters
testDurationNumber of seconds for each test, with range (0, infinity)
testFunctionsOptional name of the functions to be tested