array_split.split_test.SplitTest¶
- class array_split.split_test.SplitTest(methodName='runTest')[source]¶
Tests for
array_split.splitmodule.Methods
__init__([methodName])Create an instance of the class that will use the named test method when executed.
addClassCleanup(function, /, *args, **kwargs)Same as addCleanup, except the cleanup items are called even if setUpClass fails (unlike tearDownClass).
addCleanup(function, /, *args, **kwargs)Add a function, with arguments, to be called when the test is completed.
addTypeEqualityFunc(typeobj, function)Add a type specific assertEqual style function to compare a type.
assertArraySplitEqual(splt1, splt2)Compares
listofnumpy.ndarrayresults returned bynumpy.array_split()andarray_split.split.array_split()functions.debug()Run the test without collecting errors in a TestResult
Execute all class cleanup functions.
Execute all cleanup functions.
id()run([result])setUp()Hook method for setting up the test fixture before exercising it.
Hook method for setting up class fixture before running tests in the class.
Returns a one-line description of the test, or None if no description has been provided.
skipTest(reason)Skip this test.
subTest([msg])Return a context manager that will return the enclosed block of code in a subtest identified by the optional message and keyword parameters.
tearDown()Hook method for deconstructing the test fixture after testing it.
Hook method for deconstructing the class fixture after running all tests in the class.
Test for case for
array_split.split.array_split().Tests for
array_split.split.calculate_num_slices_per_axis().Test for case for splitting with maximum number of tile bytes constraint. For example::.
Test for case for splitting by explicit tile shape. For example::.
Test for case for splitting by explicit tile shape. For example::.
Tests the
array_split.split.ShapeSplitter.calculate_split_halos_from_extents()method.Test for case for splitting with explicit array start multi-index. For example::.
Test for case for splitting with explicit array start multi-index. For example::.
Test for case for splitting with explicit halo. For example::.
Test for case for splitting with explicit halo. For example::.
Tests
array_split.shape_split()for case of empty tiles and non-zero halo to ensure halo elements are not added to empty tiles.Test case for
array_split.split.calculate_tile_shape_for_max_bytes(), wherearray_shapeparameter is 1D, i.e. of the form(N,).Test case for
array_split.split.calculate_tile_shape_for_max_bytes(), wherearray_shapeparameter is 2D, i.e. of the form(H,W).Test for case for inconsistent parameter group arguments.
Test
array_split.split.ARRAY_BOUNDSandarray_split.split.NO_BOUNDS.Tests for
array_split.split.shape_factors().Test for case for splitting by number of slice elements. For example::.
Test for case for splitting by number of slice elements. For example::.
Test for case for splitting by number of slice elements. For example::.
Test for case for splitting by specified indices. For example::.
Attributes
Class attribute for
logging.Loggerlogging.