Skip to content

Commit 01e6936

Browse files
authored
Fixing typo (#63)
1 parent 7244f30 commit 01e6936

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

AndroidXCI/lib/src/main/kotlin/dev/androidx/ci/gcloud/GoogleCloudApi.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ internal interface GoogleCloudApi {
7777
/**
7878
* Walks all entries under the given [gcsPath].
7979
*/
80-
suspend fun walkEntires(gcsPath: GcsPath): Sequence<BlobVisitor>
80+
suspend fun walkEntries(gcsPath: GcsPath): Sequence<BlobVisitor>
8181
}
8282

8383
/**
@@ -91,7 +91,7 @@ internal suspend fun GoogleCloudApi.download(
9191
target: File,
9292
filter: (String) -> Boolean
9393
) {
94-
walkEntires(gcsPath).filter { visitor ->
94+
walkEntries(gcsPath).filter { visitor ->
9595
filter(visitor.relativePath)
9696
}.forEach { visitor ->
9797
val targetFile = if (visitor.isRoot()) {
@@ -159,7 +159,7 @@ private class GoogleCloudApiImpl(
159159
GcsPath.create(config.bucketName, artifactBucketPath)
160160
}
161161

162-
override suspend fun walkEntires(
162+
override suspend fun walkEntries(
163163
gcsPath: GcsPath
164164
): Sequence<BlobVisitor> {
165165
val blobId = gcsPath.blobId
@@ -222,16 +222,16 @@ private class GoogleCloudApiImpl(
222222
}
223223

224224
/**
225-
* Provides access to a Blob returned from a [GoogleCloudApi.walkEntires] method.
225+
* Provides access to a Blob returned from a [GoogleCloudApi.walkEntries] method.
226226
*/
227227
internal interface BlobVisitor {
228228
/**
229-
* Returns true if this Blob is the root blob that matches the `gcsPath` parameter of [GoogleCloudApi.walkEntires].
229+
* Returns true if this Blob is the root blob that matches the `gcsPath` parameter of [GoogleCloudApi.walkEntries].
230230
*/
231231
fun isRoot() = relativePath.isEmpty()
232232

233233
/**
234-
* Returns the relative path of the blob wrt to the `gcsPath` parameter of [GoogleCloudApi.walkEntires].
234+
* Returns the relative path of the blob wrt to the `gcsPath` parameter of [GoogleCloudApi.walkEntries].
235235
*/
236236
val relativePath: String
237237

AndroidXCI/lib/src/main/kotlin/dev/androidx/ci/testRunner/TestRunnerServiceImpl.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ internal class TestRunnerServiceImpl internal constructor(
124124
gcsPath: String = "gs://androidx-ftl-test-results/github-ci-action/ftl"
125125
): Sequence<BlobVisitor> {
126126
val path = GcsPath(path = gcsPath)
127-
return googleCloudApi.walkEntires(path)
127+
return googleCloudApi.walkEntries(path)
128128
}
129129

130130
internal suspend fun findResultFiles(
@@ -155,7 +155,7 @@ internal class TestRunnerServiceImpl internal constructor(
155155
// redfin-30-en-portrait_rerun_2/test_result_1.xml
156156

157157
val steps = testExecutionStore.getTestExecutionSteps(testMatrix)
158-
googleCloudApi.walkEntires(
158+
googleCloudApi.walkEntries(
159159
gcsPath = resultPath
160160
).forEach { visitor ->
161161
val fileName = visitor.fileName
@@ -218,7 +218,7 @@ internal class TestRunnerServiceImpl internal constructor(
218218
}
219219
val testRunNumber = testIdentifiers.first().runNumber
220220
fun BlobVisitor.fullDeviceId() = relativePath.substringBefore('/', "")
221-
googleCloudApi.walkEntires(
221+
googleCloudApi.walkEntries(
222222
gcsPath = resultPath
223223
).forEach { visitor ->
224224
val runNumber = DeviceRun.create(visitor.fullDeviceId()).runNumber

AndroidXCI/lib/src/test/kotlin/dev/androidx/ci/fake/FakeGoogleCloudApi.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ internal class FakeGoogleCloudApi(
4848
return path
4949
}
5050

51-
override suspend fun walkEntires(gcsPath: GcsPath): Sequence<BlobVisitor> {
51+
override suspend fun walkEntries(gcsPath: GcsPath): Sequence<BlobVisitor> {
5252
return artifacts.asSequence().filter { entry ->
5353
entry.key.path.startsWith(gcsPath.path)
5454
}.map { entry ->

0 commit comments

Comments
 (0)