This document describes the API test review results for H5Dget_native_type().
Test case | Test source file | Test method | Expected test results | Notes |
---|---|---|---|---|
Native int datatype | native.c |
|
Check that type's size, order and class are correct. |
Data is written & read back in for this test. It would be convenient to have a function in the test module for choosing
the correct atomic datatype based on the particular platform settings. This
should use the H5_SIZEOF_ |
Native long long datatype | native.c |
|
Check that type's size, order and class are correct. |
Data is NOT written & read back in for this test. |
Native char datatype | native.c |
|
Check that type's size, order and class are correct. |
Data is NOT written & read back in for this test. |
Native float datatype | native.c |
|
Check that type's size, order and class are correct. |
Data is NOT written & read back in for this test. Need test for native double datatype (stored as 32-bit floating-point datatype in file). This will probably require using an "epsilon" if the data is compared for this test. |
Compound datatype with atomic fields | native.c |
|
Check that native and unpacked datatypes are equal. |
Data is written & read back in for this test. |
Compound datatype with one compound field | native.c |
|
Check that native and unpacked datatypes are equal. |
Data is written & read back in for this test. Could use test for compound datatype with multiple compound fields. Could use test for 3 or more nested deep compound datatype. |
Enum datatype | native.c |
|
Check that native and original datatypes are equal. |
Data is written & read back in for this test. |
Array datatype | native.c |
|
Check that native and original datatypes are equal. |
This is not tested currently. |
Array of compound datatype | native.c |
|
Check that native and original datatypes are equal. |
Data is written & read back in for this test. |
Compound datatype with array field | native.c |
|
Check that native and original datatypes are equal. |
This is not tested currently. |
VL datatype with atomic base type | native.c |
|
Check that native and original datatypes are equal. |
Data is written & read back in for this test. Combinations with VL datatypes in other composite types and with other datatypes for the base type of the VL datatype are not tested. |
VL string datatype | native.c |
|
Check that native and original datatypes are equal. |
Data is written & read back in for this test. Combinations with VL string datatypes in composite types are not tested. |
Reference datatype | native.c |
|
Check that native and original datatypes are equal. |
Data is written & read back in for this test. Combinations with reference datatypes in composite types are not tested. |
Opaque datatype | native.c |
|
Check that native and original datatypes are equal. |
Data is written & read back in for this test. Combinations with opaque datatypes in composite types are not tested. |
Bitfield datatype | native.c |
|
Check that native and original datatypes are equal. |
Data is written & read back in for this test. Combinations with bitfield datatypes in composite types are not tested. |
Time datatype | native.c |
|
Check that native and original datatypes are equal. |
This is not tested currently. |
The H5Dget_native_type() function is not tested in parallel. Currently, there does not appear to be a need for this.