hdf5
hdf5 copied to clipboard
Add tests for H5R get name APIs
This PR adds functionality tests for the following APIs: H5Rget_file_name H5Rget_obj_name H5Rget_attr_name
It also removes a "+1" when returning a name length in H5R__get_attr_name(). This extra "+1" gave an incorrect value for the length of the referenced object's attribute name. In addition, the PR provides some minor improvement in readability and maintainability.
(Fixed GH-4447)