Skip to content

Commit 28d38be

Browse files
GooolerCopilot
andauthored
Update src/testKit/kotlin/com/github/jengelman/gradle/plugins/shadow/testkit/JarPath.kt
Co-authored-by: Copilot <[email protected]>
1 parent 76f0768 commit 28d38be

File tree

1 file changed

+3
-3
lines changed
  • src/testKit/kotlin/com/github/jengelman/gradle/plugins/shadow/testkit

1 file changed

+3
-3
lines changed

src/testKit/kotlin/com/github/jengelman/gradle/plugins/shadow/testkit/JarPath.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ fun ZipFile.getStream(entryName: String): InputStream {
4949
fun Assert<JarPath>.getContent(entryName: String) = transform { it.getContent(entryName) }
5050

5151
/**
52-
* Scans the jar file for all entries that match the specified [entryName],
53-
* [getContent] or [getStream] return only one of the matching entries;
54-
* which one these functions return is undefined.
52+
* Scans the jar file for all entries that match the specified [entryName].
53+
* Unlike [getContent] or [getStream], which return only one of the matching entries
54+
* (which one is undefined), this function returns all matching entries.
5555
*/
5656
fun Assert<JarPath>.getContents(entryName: String) = transform { actual ->
5757
JarInputStream(actual.path.inputStream()).use { jarInput ->

0 commit comments

Comments
 (0)