shunping commented on code in PR #37502:
URL: https://github.com/apache/beam/pull/37502#discussion_r2795135522


##########
sdks/java/extensions/google-cloud-platform-core/src/test/java/org/apache/beam/sdk/extensions/gcp/util/gcsfs/GcsPathTest.java:
##########
@@ -348,4 +348,24 @@ public void testSubPathError() {
     a.subpath(1, 1); // throws IllegalArgumentException
     Assert.fail();
   }
+
+  @Test
+  public void testIsWildcard() {
+    assertTrue(GcsPath.isWildcard(GcsPath.fromUri("gs://bucket/foo*")));
+    assertTrue(GcsPath.isWildcard(GcsPath.fromUri("gs://bucket/foo?")));
+    assertTrue(GcsPath.isWildcard(GcsPath.fromUri("gs://bucket/foo[a-z]")));

Review Comment:
   No behavior change here.
   
   `isWildcard()` is only moved from GcsUtil into GcsPath, so it can be shared 
by GcsUtil V1 and V2. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to