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 Sep 21, 2023
1 parent daa1cd5 commit bb2dfe4
Showing 1 changed file with 11 additions and 18 deletions.
29 changes: 11 additions & 18 deletions vol_dataset_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -1264,10 +1264,10 @@ test_create_dataset_predefined_types(void)
hid_t fspace_id = H5I_INVALID_HID;
hid_t dset_id = H5I_INVALID_HID;
hid_t predefined_type_test_table[] = {H5T_STD_U8LE, H5T_STD_U8BE, H5T_STD_I8LE, H5T_STD_I8BE,
H5T_STD_U16LE, H5T_STD_U16BE, H5T_STD_I16LE, H5T_STD_I16BE,
H5T_STD_U32LE, H5T_STD_U32BE, H5T_STD_I32LE, H5T_STD_I32BE,
H5T_STD_U64LE, H5T_STD_U64BE, H5T_STD_I64LE, H5T_STD_I64BE,
H5T_IEEE_F32LE, H5T_IEEE_F32BE, H5T_IEEE_F64LE, H5T_IEEE_F64BE};
H5T_STD_U16LE, H5T_STD_U16BE, H5T_STD_I16LE, H5T_STD_I16BE,
H5T_STD_U32LE, H5T_STD_U32BE, H5T_STD_I32LE, H5T_STD_I32BE,
H5T_STD_U64LE, H5T_STD_U64BE, H5T_STD_I64LE, H5T_STD_I64BE,
H5T_IEEE_F32LE, H5T_IEEE_F32BE, H5T_IEEE_F64LE, H5T_IEEE_F64BE};

TESTING("dataset creation with predefined datatypes");

Expand Down Expand Up @@ -7389,8 +7389,7 @@ test_dataset_real_to_int_conversion(void)
{
TESTING_2("write then read int from real dataset with H5S_ALL selection");

if (H5Dwrite(dset_id, int_type_id, H5S_ALL, H5S_ALL, H5P_DEFAULT,
data) < 0) {
if (H5Dwrite(dset_id, int_type_id, H5S_ALL, H5S_ALL, H5P_DEFAULT, data) < 0) {
H5_FAILED();
HDprintf(" couldn't write to dataset '%s'\n", DATASET_DATA_REAL_CONVERSION_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_all_read);
Expand Down Expand Up @@ -7444,8 +7443,7 @@ test_dataset_real_to_int_conversion(void)
PART_ERROR(H5Dwrite_all_read);
}

if (H5Dread(dset_id, int_type_idE, H5S_ALL, H5S_ALL, H5P_DEFAULT,
data) < 0) {
if (H5Dread(dset_id, int_type_idE, H5S_ALL, H5S_ALL, H5P_DEFAULT, data) < 0) {
H5_FAILED();
HDprintf(" couldn't read from dataset '%s'\n",
DATASET_DATA_REAL_CONVERSION_TEST_DSET_NAME);
Expand Down Expand Up @@ -7542,8 +7540,7 @@ test_dataset_real_to_int_conversion(void)
}
}

if (H5Dwrite(dset_id, int_type_idE, mspace_id, fspace_id,
H5P_DEFAULT, write_buf) < 0) {
if (H5Dwrite(dset_id, int_type_idE, mspace_id, fspace_id, H5P_DEFAULT, write_buf) < 0) {
H5_FAILED();
HDprintf(" couldn't write to dataset '%s'\n", DATASET_DATA_REAL_CONVERSION_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_hyperslab_read);
Expand Down Expand Up @@ -7600,8 +7597,7 @@ test_dataset_real_to_int_conversion(void)
PART_ERROR(H5Dwrite_hyperslab_read);
}

if (H5Dread(dset_id, int_type_idE, H5S_ALL, H5S_ALL, H5P_DEFAULT,
read_buf) < 0) {
if (H5Dread(dset_id, int_type_idE, H5S_ALL, H5S_ALL, H5P_DEFAULT, read_buf) < 0) {
H5_FAILED();
HDprintf(" couldn't read from dataset '%s'\n",
DATASET_DATA_REAL_CONVERSION_TEST_DSET_NAME);
Expand Down Expand Up @@ -7674,8 +7670,7 @@ test_dataset_real_to_int_conversion(void)
PART_ERROR(H5Dwrite_point_sel_read);
}

if (H5Dread(dset_id, int_type_idE, H5S_ALL, H5S_ALL, H5P_DEFAULT,
data) < 0) {
if (H5Dread(dset_id, int_type_idE, H5S_ALL, H5S_ALL, H5P_DEFAULT, data) < 0) {
H5_FAILED();
HDprintf(" couldn't read from dataset '%s'\n",
DATASET_DATA_REAL_CONVERSION_TEST_DSET_NAME);
Expand Down Expand Up @@ -7720,8 +7715,7 @@ test_dataset_real_to_int_conversion(void)
}
}

if (H5Dwrite(dset_id, int_type_idE, mspace_id, fspace_id,
H5P_DEFAULT, write_buf) < 0) {
if (H5Dwrite(dset_id, int_type_idE, mspace_id, fspace_id, H5P_DEFAULT, write_buf) < 0) {
H5_FAILED();
HDprintf(" couldn't write to dataset '%s'\n", DATASET_DATA_REAL_CONVERSION_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_point_sel_read);
Expand Down Expand Up @@ -7778,8 +7772,7 @@ test_dataset_real_to_int_conversion(void)
PART_ERROR(H5Dwrite_point_sel_read);
}

if (H5Dread(dset_id, int_type_idE, H5S_ALL, H5S_ALL, H5P_DEFAULT,
read_buf) < 0) {
if (H5Dread(dset_id, int_type_idE, H5S_ALL, H5S_ALL, H5P_DEFAULT, read_buf) < 0) {
H5_FAILED();
HDprintf(" couldn't read from dataset '%s'\n",
DATASET_DATA_REAL_CONVERSION_TEST_DSET_NAME);
Expand Down

0 comments on commit bb2dfe4

Please sign in to comment.