summaryrefslogtreecommitdiffstats
path: root/java/test
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2022-07-29 13:36:40 (GMT)
committerGitHub <noreply@github.com>2022-07-29 13:36:40 (GMT)
commit40fc2cca16cd562954d3b724fa56badb3b9da72b (patch)
tree536b4bb51328af98ead7dfa1951f36b47f9b752a /java/test
parentc63dfb0fd3345ecb33014612f94d3959f147be03 (diff)
downloadhdf5-40fc2cca16cd562954d3b724fa56badb3b9da72b.zip
hdf5-40fc2cca16cd562954d3b724fa56badb3b9da72b.tar.gz
hdf5-40fc2cca16cd562954d3b724fa56badb3b9da72b.tar.bz2
1.10 clang 13 format #1933 (#1940)
* clang 13 format #1933 * Correct workflow
Diffstat (limited to 'java/test')
-rw-r--r--java/test/TestH5.java2
-rw-r--r--java/test/TestH5A.java41
-rw-r--r--java/test/TestH5Dplist.java2
-rw-r--r--java/test/TestH5Ocopy.java2
-rw-r--r--java/test/TestH5PData.java2
-rw-r--r--java/test/TestH5Pfapl.java2
-rw-r--r--java/test/TestH5Pvirtual.java8
-rw-r--r--java/test/TestH5R.java2
8 files changed, 31 insertions, 30 deletions
diff --git a/java/test/TestH5.java b/java/test/TestH5.java
index 27c35b3..d0ff2e0 100644
--- a/java/test/TestH5.java
+++ b/java/test/TestH5.java
@@ -103,7 +103,7 @@ public class TestH5 {
{
try {
H5fid = H5.H5Fcreate(H5_FILE, HDF5Constants.H5F_ACC_TRUNC, HDF5Constants.H5P_DEFAULT,
- HDF5Constants.H5P_DEFAULT);
+ HDF5Constants.H5P_DEFAULT);
H5dsid = H5.H5Screate_simple(2, H5dims, null);
H5did = _createDataset(H5fid, H5dsid, "dset", HDF5Constants.H5P_DEFAULT);
}
diff --git a/java/test/TestH5A.java b/java/test/TestH5A.java
index 52731b3..2633fde 100644
--- a/java/test/TestH5A.java
+++ b/java/test/TestH5A.java
@@ -251,8 +251,9 @@ public class TestH5A {
// Opening the existing attribute, obj_name(Created by H5ACreate2)
// by index, attached to an object identifier.
- attribute_id = H5.H5Aopen_by_idx(H5did, ".", HDF5Constants.H5_INDEX_CRT_ORDER,
- HDF5Constants.H5_ITER_INC, 0, HDF5Constants.H5P_DEFAULT, lapl_id);
+ attribute_id =
+ H5.H5Aopen_by_idx(H5did, ".", HDF5Constants.H5_INDEX_CRT_ORDER, HDF5Constants.H5_ITER_INC, 0,
+ HDF5Constants.H5P_DEFAULT, lapl_id);
assertTrue("testH5Aopen_by_idx: H5Aopen_by_idx", attribute_id >= 0);
@@ -314,9 +315,9 @@ public class TestH5A {
boolean bool_val = false;
try {
- attribute_id = H5.H5Acreate_by_name(H5fid, obj_name, attr_name, type_id, space_id,
- HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT,
- lapl_id);
+ attribute_id =
+ H5.H5Acreate_by_name(H5fid, obj_name, attr_name, type_id, space_id, HDF5Constants.H5P_DEFAULT,
+ HDF5Constants.H5P_DEFAULT, lapl_id);
assertTrue("testH5Acreate_by_name: H5Acreate_by_name", attribute_id >= 0);
// Check if the name of attribute attached to the object specified
@@ -434,9 +435,9 @@ public class TestH5A {
long attribute_id = HDF5Constants.H5I_INVALID_HID;
try {
- attribute_id = H5.H5Acreate_by_name(H5fid, obj_name, attr_name, type_id, space_id,
- HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT,
- lapl_id);
+ attribute_id =
+ H5.H5Acreate_by_name(H5fid, obj_name, attr_name, type_id, space_id, HDF5Constants.H5P_DEFAULT,
+ HDF5Constants.H5P_DEFAULT, lapl_id);
assertTrue("testH5Aget_name: H5Acreate_by_name ", attribute_id > 0);
ret_name = H5.H5Aget_name(attribute_id);
assertEquals(ret_name, attr_name);
@@ -540,7 +541,7 @@ public class TestH5A {
try {
attr_id = H5.H5Acreate(H5did, "dset", type_id, space_id, HDF5Constants.H5P_DEFAULT,
- HDF5Constants.H5P_DEFAULT);
+ HDF5Constants.H5P_DEFAULT);
attribute_id = H5.H5Aopen(H5did, "dset", HDF5Constants.H5P_DEFAULT);
// Calling H5Aget_info with attribute_id returned from H5Aopen.
attr_info = H5.H5Aget_info(attribute_id);
@@ -581,7 +582,7 @@ public class TestH5A {
try {
attr_id = H5.H5Acreate(H5did, ".", type_id, space_id, HDF5Constants.H5P_DEFAULT,
- HDF5Constants.H5P_DEFAULT);
+ HDF5Constants.H5P_DEFAULT);
attribute_id = H5.H5Aopen_by_idx(H5did, ".", HDF5Constants.H5_INDEX_CRT_ORDER, order, 0,
HDF5Constants.H5P_DEFAULT, lapl_id);
// Calling H5Aget_info with attribute_id returned from
@@ -624,7 +625,7 @@ public class TestH5A {
try {
attr_id = H5.H5Acreate(H5did, "dset1", type_id, space_id, HDF5Constants.H5P_DEFAULT,
- HDF5Constants.H5P_DEFAULT);
+ HDF5Constants.H5P_DEFAULT);
attr2_id = H5.H5Acreate(H5did, "dataset2", type_id, space_id, HDF5Constants.H5P_DEFAULT,
HDF5Constants.H5P_DEFAULT);
@@ -701,7 +702,7 @@ public class TestH5A {
try {
attr_id = H5.H5Acreate_by_name(H5fid, obj_name, attr_name, type_id, space_id,
- HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT, lapl_id);
+ HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT, lapl_id);
attr_info = H5.H5Aget_info_by_name(H5fid, obj_name, attr_name, lapl_id);
assertNotNull(attr_info);
}
@@ -1214,13 +1215,13 @@ public class TestH5A {
}
try {
attr1_id = H5.H5Acreate_by_name(H5fid, ".", "attribute1", type_id, space_id,
- HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT, lapl_id);
+ HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT, lapl_id);
attr2_id = H5.H5Acreate_by_name(H5fid, ".", "attribute2", type_id, space_id,
- HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT, lapl_id);
+ HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT, lapl_id);
attr3_id = H5.H5Acreate_by_name(H5fid, ".", "attribute3", type_id, space_id,
- HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT, lapl_id);
+ HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT, lapl_id);
attr4_id = H5.H5Acreate_by_name(H5fid, ".", "attribute4", type_id, space_id,
- HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT, lapl_id);
+ HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT, lapl_id);
H5A_iterate_cb iter_cb = new H5A_iter_callback();
try {
H5.H5Aiterate(H5fid, HDF5Constants.H5_INDEX_CRT_ORDER, HDF5Constants.H5_ITER_INC, 0L, iter_cb,
@@ -1307,13 +1308,13 @@ public class TestH5A {
}
try {
attr1_id = H5.H5Acreate_by_name(H5fid, ".", "attribute4", type_id, space_id,
- HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT, lapl_id);
+ HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT, lapl_id);
attr2_id = H5.H5Acreate_by_name(H5fid, ".", "attribute3", type_id, space_id,
- HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT, lapl_id);
+ HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT, lapl_id);
attr3_id = H5.H5Acreate_by_name(H5fid, ".", "attribute2", type_id, space_id,
- HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT, lapl_id);
+ HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT, lapl_id);
attr4_id = H5.H5Acreate_by_name(H5fid, ".", "attribute1", type_id, space_id,
- HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT, lapl_id);
+ HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT, lapl_id);
H5A_iterate_cb iter_cb = new H5A_iter_callback();
try {
H5.H5Aiterate_by_name(H5fid, ".", HDF5Constants.H5_INDEX_NAME, HDF5Constants.H5_ITER_INC, 0L,
diff --git a/java/test/TestH5Dplist.java b/java/test/TestH5Dplist.java
index b9e97f4..c3e4d69 100644
--- a/java/test/TestH5Dplist.java
+++ b/java/test/TestH5Dplist.java
@@ -125,7 +125,7 @@ public class TestH5Dplist {
System.out.print(testname.getMethodName());
try {
H5fid = H5.H5Fcreate(H5_FILE, HDF5Constants.H5F_ACC_TRUNC, HDF5Constants.H5P_DEFAULT,
- HDF5Constants.H5P_DEFAULT);
+ HDF5Constants.H5P_DEFAULT);
H5dsid = H5.H5Screate_simple(RANK, H5dims, H5maxdims);
}
catch (Throwable err) {
diff --git a/java/test/TestH5Ocopy.java b/java/test/TestH5Ocopy.java
index da44eb5..e4cfa6b 100644
--- a/java/test/TestH5Ocopy.java
+++ b/java/test/TestH5Ocopy.java
@@ -98,7 +98,7 @@ public class TestH5Ocopy {
System.out.print(testname.getMethodName());
try {
H5fid = H5.H5Fcreate(FILENAME, HDF5Constants.H5F_ACC_TRUNC, HDF5Constants.H5P_DEFAULT,
- HDF5Constants.H5P_DEFAULT);
+ HDF5Constants.H5P_DEFAULT);
H5dsid2 = H5.H5Screate(HDF5Constants.H5S_SCALAR);
H5did1 = _createDataset(H5fid, H5dsid2, "DS2", HDF5Constants.H5P_DEFAULT);
H5dsid = H5.H5Screate_simple(1, dims, null);
diff --git a/java/test/TestH5PData.java b/java/test/TestH5PData.java
index 49a0b7d..da45715 100644
--- a/java/test/TestH5PData.java
+++ b/java/test/TestH5PData.java
@@ -104,7 +104,7 @@ public class TestH5PData {
try {
H5fid = H5.H5Fcreate(H5_FILE, HDF5Constants.H5F_ACC_TRUNC, HDF5Constants.H5P_DEFAULT,
- HDF5Constants.H5P_DEFAULT);
+ HDF5Constants.H5P_DEFAULT);
H5dsid = H5.H5Screate_simple(2, H5dims, null);
H5did = _createFloatDataset(H5fid, H5dsid, "dset", HDF5Constants.H5P_DEFAULT);
plist_id = H5.H5Pcreate(HDF5Constants.H5P_DATASET_XFER);
diff --git a/java/test/TestH5Pfapl.java b/java/test/TestH5Pfapl.java
index 307ee74..e5c04ee 100644
--- a/java/test/TestH5Pfapl.java
+++ b/java/test/TestH5Pfapl.java
@@ -247,7 +247,7 @@ public class TestH5Pfapl {
{
try {
H5fid = H5.H5Fcreate(H5_FAMILY_FILE + ".h5", HDF5Constants.H5F_ACC_TRUNC,
- HDF5Constants.H5P_DEFAULT, fapl);
+ HDF5Constants.H5P_DEFAULT, fapl);
H5dsid = H5.H5Screate_simple(2, H5dims, null);
H5did = _createDataset(H5fid, H5dsid, "dset", HDF5Constants.H5P_DEFAULT);
}
diff --git a/java/test/TestH5Pvirtual.java b/java/test/TestH5Pvirtual.java
index 41ae6d1..b743f09 100644
--- a/java/test/TestH5Pvirtual.java
+++ b/java/test/TestH5Pvirtual.java
@@ -107,11 +107,11 @@ public class TestH5Pvirtual {
try {
file_id = H5.H5Fcreate(SRC_FILE[i], HDF5Constants.H5F_ACC_TRUNC, HDF5Constants.H5P_DEFAULT,
- HDF5Constants.H5P_DEFAULT);
+ HDF5Constants.H5P_DEFAULT);
space_id = H5.H5Screate_simple(1, H5dims, null);
dset_id = H5.H5Dcreate(file_id, SRC_DATASET[i], HDF5Constants.H5T_NATIVE_INT, space_id,
- HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT,
- HDF5Constants.H5P_DEFAULT);
+ HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT,
+ HDF5Constants.H5P_DEFAULT);
H5.H5Dwrite(dset_id, HDF5Constants.H5T_NATIVE_INT, HDF5Constants.H5S_ALL,
HDF5Constants.H5S_ALL, HDF5Constants.H5P_DEFAULT, dset_data);
}
@@ -144,7 +144,7 @@ public class TestH5Pvirtual {
try {
int[] fill_value = {-1};
H5fid = H5.H5Fcreate(H5_FILE, HDF5Constants.H5F_ACC_TRUNC, HDF5Constants.H5P_DEFAULT,
- HDF5Constants.H5P_DEFAULT);
+ HDF5Constants.H5P_DEFAULT);
H5dsid = H5.H5Screate_simple(2, VDSH5dims, null);
H5dcplid = H5.H5Pcreate(HDF5Constants.H5P_DATASET_CREATE);
H5.H5Pset_fill_value(H5dcplid, HDF5Constants.H5T_NATIVE_INT, fill_value);
diff --git a/java/test/TestH5R.java b/java/test/TestH5R.java
index 54ff9c2..d51b688 100644
--- a/java/test/TestH5R.java
+++ b/java/test/TestH5R.java
@@ -111,7 +111,7 @@ public class TestH5R {
try {
H5fid = H5.H5Fcreate(H5_FILE, HDF5Constants.H5F_ACC_TRUNC, HDF5Constants.H5P_DEFAULT,
- HDF5Constants.H5P_DEFAULT);
+ HDF5Constants.H5P_DEFAULT);
H5dsid = H5.H5Screate_simple(2, H5dims, null);
H5gid = _createGroup(H5fid, "Group1");
H5did2 = _createDataset(H5gid, H5dsid, "dset2", HDF5Constants.H5P_DEFAULT);