Skip to content

Commit

Permalink
Committing clang-format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 20, 2024
1 parent 317942c commit f326f1c
Show file tree
Hide file tree
Showing 17 changed files with 566 additions and 605 deletions.
50 changes: 21 additions & 29 deletions test/API/H5_api_async_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -2695,37 +2695,29 @@ void
H5_api_async_test_add(void)
{
/* Add a fake test to print out a header to distinguish different test interfaces */
AddTest("print_async_test_header", print_async_test_header, NULL, NULL,
NULL, 0, "Prints header for async tests");

AddTest("test_one_dataset_io", test_one_dataset_io, NULL, NULL,
NULL, 0, "single dataset I/O");
AddTest("test_multi_dataset_io", test_multi_dataset_io, NULL, NULL,
NULL, 0, "multi dataset I/O");
AddTest("test_multi_file_dataset_io", test_multi_file_dataset_io, NULL, NULL,
NULL, 0, "multi file dataset I/O");
AddTest("test_multi_file_grp_dset_io", test_multi_file_grp_dset_io, NULL, NULL,
NULL, 0, "multi file dataset I/O with groups");
AddTest("test_set_extent", test_set_extent, NULL, NULL, NULL, 0,
"H5Dset_extent() and H5Dget_space()");
AddTest("test_attribute_exists", test_attribute_exists, NULL, NULL,
NULL, 0, "H5Aexists()");
AddTest("test_attribute_io", test_attribute_io, NULL, NULL,
NULL, 0, "attribute I/O");
AddTest("test_attribute_io_tconv", test_attribute_io_tconv, NULL, NULL,
NULL, 0, "attribute I/O with type conversion");
AddTest("test_attribute_io_compound", test_attribute_io_compound, NULL, NULL,
NULL, 0, "attribute I/O with compound type conversion");
AddTest("print_async_test_header", print_async_test_header, NULL, NULL, NULL, 0,
"Prints header for async tests");

AddTest("test_one_dataset_io", test_one_dataset_io, NULL, NULL, NULL, 0, "single dataset I/O");
AddTest("test_multi_dataset_io", test_multi_dataset_io, NULL, NULL, NULL, 0, "multi dataset I/O");
AddTest("test_multi_file_dataset_io", test_multi_file_dataset_io, NULL, NULL, NULL, 0,
"multi file dataset I/O");
AddTest("test_multi_file_grp_dset_io", test_multi_file_grp_dset_io, NULL, NULL, NULL, 0,
"multi file dataset I/O with groups");
AddTest("test_set_extent", test_set_extent, NULL, NULL, NULL, 0, "H5Dset_extent() and H5Dget_space()");
AddTest("test_attribute_exists", test_attribute_exists, NULL, NULL, NULL, 0, "H5Aexists()");
AddTest("test_attribute_io", test_attribute_io, NULL, NULL, NULL, 0, "attribute I/O");
AddTest("test_attribute_io_tconv", test_attribute_io_tconv, NULL, NULL, NULL, 0,
"attribute I/O with type conversion");
AddTest("test_attribute_io_compound", test_attribute_io_compound, NULL, NULL, NULL, 0,
"attribute I/O with compound type conversion");
AddTest("test_group", test_group, NULL, NULL, NULL, 0, "group operations");
AddTest("test_link", test_link, NULL, NULL, NULL, 0, "link operations");
AddTest("test_ocopy_orefresh", test_ocopy_orefresh, NULL, NULL, NULL, 0,
"H5Ocopy() and H5Orefresh()");
AddTest("test_file_reopen", test_file_reopen, NULL, NULL,
NULL, 0, "H5Freopen()");
AddTest("test_ocopy_orefresh", test_ocopy_orefresh, NULL, NULL, NULL, 0, "H5Ocopy() and H5Orefresh()");
AddTest("test_file_reopen", test_file_reopen, NULL, NULL, NULL, 0, "H5Freopen()");

/* Add a fake test to cleanup test files due to current test interdependencies */
AddTest("test_file_cleanup", test_file_cleanup, NULL, NULL,
NULL, 0, "cleanup test files");
AddTest("test_file_cleanup", test_file_cleanup, NULL, NULL, NULL, 0, "cleanup test files");
}

#else /* H5_API_TEST_HAVE_ASYNC */
Expand All @@ -2734,8 +2726,8 @@ void
H5_api_async_test_add(void)
{
/* Add a fake test to print out a header to distinguish different test interfaces */
AddTest("print_async_test_header", print_async_test_header, NULL, NULL,
NULL, 0, "Prints header for async tests");
AddTest("print_async_test_header", print_async_test_header, NULL, NULL, NULL, 0,
"Prints header for async tests");
}

#endif /* H5_API_TEST_HAVE_ASYNC */
136 changes: 67 additions & 69 deletions test/API/H5_api_attribute_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -11555,85 +11555,83 @@ void
H5_api_attribute_test_add(void)
{
/* Add a fake test to print out a header to distinguish different test interfaces */
AddTest("print_attribute_test_header", print_attribute_test_header,
NULL, NULL, NULL, 0, "Prints header for attribute tests");

AddTest("test_create_attribute_on_root", test_create_attribute_on_root,
NULL, NULL, NULL, 0, "attribute creation on the root group");
AddTest("test_create_attribute_on_dataset", test_create_attribute_on_dataset,
NULL, NULL, NULL, 0, "attribute creation on a dataset");
AddTest("test_create_attribute_on_datatype", test_create_attribute_on_datatype,
NULL, NULL, NULL, 0, "attribute creation on a committed datatype");
AddTest("test_create_attribute_with_null_space", test_create_attribute_with_null_space,
NULL, NULL, NULL, 0, "attribute creation with a NULL dataspace");
AddTest("test_create_attribute_with_scalar_space", test_create_attribute_with_scalar_space,
NULL, NULL, NULL, 0, "attribute creation with a SCALAR dataspace");
AddTest("test_create_attribute_with_space_in_name", test_create_attribute_with_space_in_name,
NULL, NULL, NULL, 0, "attribute creation with a space in attribute's name");
AddTest("test_create_attribute_invalid_params", test_create_attribute_invalid_params,
NULL, NULL, NULL, 0, "attribute creation with invalid parameters");
AddTest("print_attribute_test_header", print_attribute_test_header, NULL, NULL, NULL, 0,
"Prints header for attribute tests");

AddTest("test_create_attribute_on_root", test_create_attribute_on_root, NULL, NULL, NULL, 0,
"attribute creation on the root group");
AddTest("test_create_attribute_on_dataset", test_create_attribute_on_dataset, NULL, NULL, NULL, 0,
"attribute creation on a dataset");
AddTest("test_create_attribute_on_datatype", test_create_attribute_on_datatype, NULL, NULL, NULL, 0,
"attribute creation on a committed datatype");
AddTest("test_create_attribute_with_null_space", test_create_attribute_with_null_space, NULL, NULL, NULL,
0, "attribute creation with a NULL dataspace");
AddTest("test_create_attribute_with_scalar_space", test_create_attribute_with_scalar_space, NULL, NULL,
NULL, 0, "attribute creation with a SCALAR dataspace");
AddTest("test_create_attribute_with_space_in_name", test_create_attribute_with_space_in_name, NULL, NULL,
NULL, 0, "attribute creation with a space in attribute's name");
AddTest("test_create_attribute_invalid_params", test_create_attribute_invalid_params, NULL, NULL, NULL, 0,
"attribute creation with invalid parameters");
AddTest("test_open_attribute", test_open_attribute, NULL, NULL, NULL, 0, "attribute opening");
AddTest("test_open_attribute_invalid_params", test_open_attribute_invalid_params,
NULL, NULL, NULL, 0, "attribute opening with invalid parameters");
AddTest("test_open_attribute_invalid_params", test_open_attribute_invalid_params, NULL, NULL, NULL, 0,
"attribute opening with invalid parameters");
AddTest("test_write_attribute", test_write_attribute, NULL, NULL, NULL, 0, "H5Awrite");
AddTest("test_write_attribute_invalid_params", test_write_attribute_invalid_params,
NULL, NULL, NULL, 0, "H5Awrite with invalid parameters");
AddTest("test_write_attribute_invalid_params", test_write_attribute_invalid_params, NULL, NULL, NULL, 0,
"H5Awrite with invalid parameters");
AddTest("test_read_attribute", test_read_attribute, NULL, NULL, NULL, 0, "H5Aread");
AddTest("test_read_attribute_invalid_params", test_read_attribute_invalid_params,
NULL, NULL, NULL, 0, "H5Aread with invalid parameters");
AddTest("test_read_empty_attribute", test_read_empty_attribute,
NULL, NULL, NULL, 0, "reading an empty attribute");
AddTest("test_close_attribute_invalid_id", test_close_attribute_invalid_id,
NULL, NULL, NULL, 0, "H5Aclose with an invalid attribute ID");
AddTest("test_get_attribute_space_and_type", test_get_attribute_space_and_type,
NULL, NULL, NULL, 0, "retrieval of an attribute's dataspace and datatype");
AddTest("test_read_attribute_invalid_params", test_read_attribute_invalid_params, NULL, NULL, NULL, 0,
"H5Aread with invalid parameters");
AddTest("test_read_empty_attribute", test_read_empty_attribute, NULL, NULL, NULL, 0,
"reading an empty attribute");
AddTest("test_close_attribute_invalid_id", test_close_attribute_invalid_id, NULL, NULL, NULL, 0,
"H5Aclose with an invalid attribute ID");
AddTest("test_get_attribute_space_and_type", test_get_attribute_space_and_type, NULL, NULL, NULL, 0,
"retrieval of an attribute's dataspace and datatype");
AddTest("test_get_attribute_space_and_type_invalid_params",
test_get_attribute_space_and_type_invalid_params,
NULL, NULL, NULL, 0, "H5Aget_type/H5Aget_space with invalid parameters");
AddTest("test_attribute_property_lists", test_attribute_property_lists,
NULL, NULL, NULL, 0, "attribute property list operations");
AddTest("test_get_attribute_name", test_get_attribute_name, NULL, NULL,
NULL, 0, "retrieval of an attribute's name");
AddTest("test_get_attribute_name_invalid_params", test_get_attribute_name_invalid_params,
NULL, NULL, NULL, 0, "retrieval of an attribute's name with invalid parameters");
AddTest("test_get_attribute_storage_size", test_get_attribute_storage_size,
NULL, NULL, NULL, 0, "H5Aget_storage_size");
test_get_attribute_space_and_type_invalid_params, NULL, NULL, NULL, 0,
"H5Aget_type/H5Aget_space with invalid parameters");
AddTest("test_attribute_property_lists", test_attribute_property_lists, NULL, NULL, NULL, 0,
"attribute property list operations");
AddTest("test_get_attribute_name", test_get_attribute_name, NULL, NULL, NULL, 0,
"retrieval of an attribute's name");
AddTest("test_get_attribute_name_invalid_params", test_get_attribute_name_invalid_params, NULL, NULL,
NULL, 0, "retrieval of an attribute's name with invalid parameters");
AddTest("test_get_attribute_storage_size", test_get_attribute_storage_size, NULL, NULL, NULL, 0,
"H5Aget_storage_size");
AddTest("test_get_attribute_info", test_get_attribute_info, NULL, NULL, NULL, 0,
"retrieval of attribute info");
AddTest("test_get_attribute_info_invalid_params", test_get_attribute_info_invalid_params,
NULL, NULL, NULL, 0, "retrieval of attribute info with invalid parameters");
AddTest("test_rename_attribute", test_rename_attribute, NULL, NULL, NULL, 0,
"attribute renaming");
AddTest("test_rename_attribute_invalid_params", test_rename_attribute_invalid_params,
NULL, NULL, NULL, 0, "attribute renaming with invalid parameters");
AddTest("test_attribute_iterate_group", test_attribute_iterate_group,
NULL, NULL, NULL, 0, "attribute iteration on a group");
AddTest("test_attribute_iterate_dataset", test_attribute_iterate_dataset,
NULL, NULL, NULL, 0, "attribute iteration on a dataset");
AddTest("test_attribute_iterate_datatype", test_attribute_iterate_datatype,
NULL, NULL, NULL, 0, "attribute iteration on a committed datatype");
AddTest("test_attribute_iterate_index_saving", test_attribute_iterate_index_saving,
NULL, NULL, NULL, 0, "attribute iteration index saving capability");
AddTest("test_attribute_iterate_invalid_params", test_attribute_iterate_invalid_params,
NULL, NULL, NULL, 0, "attribute iteration with invalid parameters");
AddTest("test_attribute_iterate_0_attributes", test_attribute_iterate_0_attributes,
NULL, NULL, NULL, 0, "attribute iteration on object with 0 attributes");
AddTest("test_attribute_compound_subset", test_attribute_compound_subset,
NULL, NULL, NULL, 0,
AddTest("test_get_attribute_info_invalid_params", test_get_attribute_info_invalid_params, NULL, NULL,
NULL, 0, "retrieval of attribute info with invalid parameters");
AddTest("test_rename_attribute", test_rename_attribute, NULL, NULL, NULL, 0, "attribute renaming");
AddTest("test_rename_attribute_invalid_params", test_rename_attribute_invalid_params, NULL, NULL, NULL, 0,
"attribute renaming with invalid parameters");
AddTest("test_attribute_iterate_group", test_attribute_iterate_group, NULL, NULL, NULL, 0,
"attribute iteration on a group");
AddTest("test_attribute_iterate_dataset", test_attribute_iterate_dataset, NULL, NULL, NULL, 0,
"attribute iteration on a dataset");
AddTest("test_attribute_iterate_datatype", test_attribute_iterate_datatype, NULL, NULL, NULL, 0,
"attribute iteration on a committed datatype");
AddTest("test_attribute_iterate_index_saving", test_attribute_iterate_index_saving, NULL, NULL, NULL, 0,
"attribute iteration index saving capability");
AddTest("test_attribute_iterate_invalid_params", test_attribute_iterate_invalid_params, NULL, NULL, NULL,
0, "attribute iteration with invalid parameters");
AddTest("test_attribute_iterate_0_attributes", test_attribute_iterate_0_attributes, NULL, NULL, NULL, 0,
"attribute iteration on object with 0 attributes");
AddTest("test_attribute_compound_subset", test_attribute_compound_subset, NULL, NULL, NULL, 0,
"verification of attribute data using H5Awrite then H5Aread with compound type subsets");
AddTest("test_attribute_string_encodings", test_attribute_string_encodings,
NULL, NULL, NULL, 0, "string encoding read/write correctness on attributes");
AddTest("test_attribute_string_encodings", test_attribute_string_encodings, NULL, NULL, NULL, 0,
"string encoding read/write correctness on attributes");
AddTest("test_delete_attribute", test_delete_attribute, NULL, NULL, NULL, 0, "attribute deletion");
AddTest("test_delete_attribute_invalid_params", test_delete_attribute_invalid_params,
NULL, NULL, NULL, 0, "attribute deletion with invalid parameters");
AddTest("test_delete_attribute_invalid_params", test_delete_attribute_invalid_params, NULL, NULL, NULL, 0,
"attribute deletion with invalid parameters");
AddTest("test_attribute_exists", test_attribute_exists, NULL, NULL, NULL, 0, "attribute existence");
AddTest("test_attribute_exists_invalid_params", test_attribute_exists_invalid_params,
NULL, NULL, NULL, 0, "attribute existence with invalid parameters");
AddTest("test_attribute_duplicate_id", test_attribute_duplicate_id,
NULL, NULL, NULL, 0, "duplicated IDs for an attribute");
AddTest("test_attribute_exists_invalid_params", test_attribute_exists_invalid_params, NULL, NULL, NULL, 0,
"attribute existence with invalid parameters");
AddTest("test_attribute_duplicate_id", test_attribute_duplicate_id, NULL, NULL, NULL, 0,
"duplicated IDs for an attribute");
AddTest("test_attribute_many", test_attribute_many, NULL, NULL, NULL, 0, "creating many attributes");
AddTest("test_get_number_attributes", test_get_number_attributes,
NULL, NULL, NULL, 0, "retrieval of the number of attributes on an object");
AddTest("test_get_number_attributes", test_get_number_attributes, NULL, NULL, NULL, 0,
"retrieval of the number of attributes on an object");
AddTest("test_attr_shared_dtype", test_attr_shared_dtype, NULL, NULL, NULL, 0,
"shared datatype for attributes");
}
Loading

0 comments on commit f326f1c

Please sign in to comment.