This is an automated email from the ASF dual-hosted git repository.

zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 733da1536ec Add EmptyDataRowEnumeratorTest (#37326)
733da1536ec is described below

commit 733da1536ecb0ad2b523cb9253117801ed161b18
Author: Liang Zhang <[email protected]>
AuthorDate: Wed Dec 10 15:22:58 2025 +0800

    Add EmptyDataRowEnumeratorTest (#37326)
---
 .../enumerator/EmptyDataRowEnumeratorTest.java     | 48 ++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git 
a/kernel/sql-federation/compiler/src/test/java/org/apache/shardingsphere/sqlfederation/compiler/implementor/enumerator/EmptyDataRowEnumeratorTest.java
 
b/kernel/sql-federation/compiler/src/test/java/org/apache/shardingsphere/sqlfederation/compiler/implementor/enumerator/EmptyDataRowEnumeratorTest.java
new file mode 100644
index 00000000000..3630fe73fa9
--- /dev/null
+++ 
b/kernel/sql-federation/compiler/src/test/java/org/apache/shardingsphere/sqlfederation/compiler/implementor/enumerator/EmptyDataRowEnumeratorTest.java
@@ -0,0 +1,48 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package 
org.apache.shardingsphere.sqlfederation.compiler.implementor.enumerator;
+
+import org.junit.jupiter.api.Test;
+
+import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+
+class EmptyDataRowEnumeratorTest {
+    
+    @Test
+    void assertCurrent() {
+        try (EmptyDataRowEnumerator enumerator = new EmptyDataRowEnumerator()) 
{
+            assertNotNull(enumerator.current());
+        }
+    }
+    
+    @Test
+    void assertMoveNext() {
+        try (EmptyDataRowEnumerator enumerator = new EmptyDataRowEnumerator()) 
{
+            assertFalse(enumerator.moveNext());
+        }
+    }
+    
+    @Test
+    void assertReset() {
+        try (EmptyDataRowEnumerator enumerator = new EmptyDataRowEnumerator()) 
{
+            assertDoesNotThrow(enumerator::reset);
+        }
+    }
+}

Reply via email to