Package unittests :: Package atomic_data_processor :: Module atomic_data_processor_write_tests :: Class AtomicDataProcessorWriteRegressionTests
[hide private]
[frames] | no frames]

Class AtomicDataProcessorWriteRegressionTests

source code

unittest.TestCase --+
                    |
                   AtomicDataProcessorWriteRegressionTests

Nested Classes [hide private]

Inherited from unittest.TestCase: failureException

Instance Methods [hide private]
 
generic_test_write_data(self, is_array_type, random_fnc, elm_size, elm_type, pack_fnc, write_fnc, method_name)
Tests whether random data types are successfully written by atomic_data_processor
source code
 
test_write_char(self)
Tests whether random chars are successfully written by atomic_data_processor
source code
 
test_write_bool(self)
Tests whether random bools are successfully written by atomic_data_processor
source code
 
test_write_int2(self)
Tests whether random int2s are successfully written by atomic_data_processor
source code
 
test_write_int4(self)
Tests whether random int4s are successfully written by atomic_data_processor
source code
 
test_write_int8(self)
Tests whether random int8s are successfully written by atomic_data_processor
source code
 
test_write_float4(self)
Tests whether random float4s are successfully written by atomic_data_processor
source code
 
test_write_float8(self)
Tests whether random float8s are successfully written by atomic_data_processor
source code
 
test_write_char_array(self)
Tests whether random char arrays are successfully written by atomic_data_processor
source code
 
test_write_bool_array(self)
Tests whether random bool arrays are successfully written by atomic_data_processor
source code
 
test_write_int2_array(self)
Tests whether random int2 arrays are successfully written by atomic_data_processor
source code
 
test_write_int4_array(self)
Tests whether random int4 arrays are successfully written by atomic_data_processor
source code
 
test_write_int8_array(self)
Tests whether random int8 arrays are successfully written by atomic_data_processor
source code
 
test_write_float4_array(self)
Tests whether random float4 arrays are successfully written by atomic_data_processor
source code
 
test_write_float8_array(self)
Tests whether random float8 arrays are successfully written by atomic_data_processor
source code
 
test_write_float8_2d_array(self)
Tests whether random float8 2d arrays are successfully written by atomic_data_processor
source code

Inherited from unittest.TestCase: __call__, __eq__, __hash__, __init__, __ne__, __repr__, __str__, assertAlmostEqual, assertAlmostEquals, assertEqual, assertEquals, assertFalse, assertNotAlmostEqual, assertNotAlmostEquals, assertNotEqual, assertNotEquals, assertRaises, assertTrue, assert_, countTestCases, debug, defaultTestResult, fail, failIf, failIfAlmostEqual, failIfEqual, failUnless, failUnlessAlmostEqual, failUnlessEqual, failUnlessRaises, id, run, setUp, shortDescription, tearDown

Inherited from unittest.TestCase (private): _exc_info

Method Details [hide private]

generic_test_write_data(self, is_array_type, random_fnc, elm_size, elm_type, pack_fnc, write_fnc, method_name)

source code 

Tests whether random data types are successfully written by atomic_data_processor

Parameters:
  • is_array_type (number) - whether data type is non-array, 1d array or 2d array
  • random_fnc (function) - random function that creates a random atomic data
  • elm_size (number) - Size of the atomic type (e.g. char is 1)
  • elm_type (number) - oid of the data type
  • pack_fnc (function) - pack function that converts atomic data to the binary representation
  • write_fnc (function) - function in the atomic_data_processor to write the atomic data
  • method_name (string) - the name of the method who calls this generic method