Skip to content

Commit c1cde72

Browse files
fix: pluralize list response variables (#103)
1 parent 15fddc3 commit c1cde72

File tree

10 files changed

+25
-25
lines changed

10 files changed

+25
-25
lines changed

openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/ProjectServiceAsyncTest.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ internal class ProjectServiceAsyncTest {
7878
.build()
7979
val projectServiceAsync = client.projects()
8080

81-
val projectFuture =
81+
val projectsFuture =
8282
projectServiceAsync.list(
8383
ProjectListParams.builder()
8484
.name("name")
@@ -88,7 +88,7 @@ internal class ProjectServiceAsyncTest {
8888
.build()
8989
)
9090

91-
val project = projectFuture.get()
92-
project.validate()
91+
val projects = projectsFuture.get()
92+
projects.validate()
9393
}
9494
}

openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/commits/TestResultServiceAsyncTest.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ internal class TestResultServiceAsyncTest {
2020
.build()
2121
val testResultServiceAsync = client.commits().testResults()
2222

23-
val testResultFuture =
23+
val testResultsFuture =
2424
testResultServiceAsync.list(
2525
TestResultListParams.builder()
2626
.projectVersionId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
@@ -32,7 +32,7 @@ internal class TestResultServiceAsyncTest {
3232
.build()
3333
)
3434

35-
val testResult = testResultFuture.get()
36-
testResult.validate()
35+
val testResults = testResultsFuture.get()
36+
testResults.validate()
3737
}
3838
}

openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/inferencepipelines/TestResultServiceAsyncTest.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ internal class TestResultServiceAsyncTest {
2020
.build()
2121
val testResultServiceAsync = client.inferencePipelines().testResults()
2222

23-
val testResultFuture =
23+
val testResultsFuture =
2424
testResultServiceAsync.list(
2525
TestResultListParams.builder()
2626
.inferencePipelineId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
@@ -31,7 +31,7 @@ internal class TestResultServiceAsyncTest {
3131
.build()
3232
)
3333

34-
val testResult = testResultFuture.get()
35-
testResult.validate()
34+
val testResults = testResultsFuture.get()
35+
testResults.validate()
3636
}
3737
}

openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/projects/CommitServiceAsyncTest.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ internal class CommitServiceAsyncTest {
8080
.build()
8181
val commitServiceAsync = client.projects().commits()
8282

83-
val commitFuture =
83+
val commitsFuture =
8484
commitServiceAsync.list(
8585
CommitListParams.builder()
8686
.projectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
@@ -89,7 +89,7 @@ internal class CommitServiceAsyncTest {
8989
.build()
9090
)
9191

92-
val commit = commitFuture.get()
93-
commit.validate()
92+
val commits = commitsFuture.get()
93+
commits.validate()
9494
}
9595
}

openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/projects/InferencePipelineServiceAsyncTest.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ internal class InferencePipelineServiceAsyncTest {
131131
.build()
132132
val inferencePipelineServiceAsync = client.projects().inferencePipelines()
133133

134-
val inferencePipelineFuture =
134+
val inferencePipelinesFuture =
135135
inferencePipelineServiceAsync.list(
136136
InferencePipelineListParams.builder()
137137
.projectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
@@ -141,7 +141,7 @@ internal class InferencePipelineServiceAsyncTest {
141141
.build()
142142
)
143143

144-
val inferencePipeline = inferencePipelineFuture.get()
145-
inferencePipeline.validate()
144+
val inferencePipelines = inferencePipelinesFuture.get()
145+
inferencePipelines.validate()
146146
}
147147
}

openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/ProjectServiceTest.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ internal class ProjectServiceTest {
7777
.build()
7878
val projectService = client.projects()
7979

80-
val project =
80+
val projects =
8181
projectService.list(
8282
ProjectListParams.builder()
8383
.name("name")
@@ -87,6 +87,6 @@ internal class ProjectServiceTest {
8787
.build()
8888
)
8989

90-
project.validate()
90+
projects.validate()
9191
}
9292
}

openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/commits/TestResultServiceTest.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ internal class TestResultServiceTest {
2020
.build()
2121
val testResultService = client.commits().testResults()
2222

23-
val testResult =
23+
val testResults =
2424
testResultService.list(
2525
TestResultListParams.builder()
2626
.projectVersionId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
@@ -32,6 +32,6 @@ internal class TestResultServiceTest {
3232
.build()
3333
)
3434

35-
testResult.validate()
35+
testResults.validate()
3636
}
3737
}

openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/inferencepipelines/TestResultServiceTest.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ internal class TestResultServiceTest {
2020
.build()
2121
val testResultService = client.inferencePipelines().testResults()
2222

23-
val testResult =
23+
val testResults =
2424
testResultService.list(
2525
TestResultListParams.builder()
2626
.inferencePipelineId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
@@ -31,6 +31,6 @@ internal class TestResultServiceTest {
3131
.build()
3232
)
3333

34-
testResult.validate()
34+
testResults.validate()
3535
}
3636
}

openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/projects/CommitServiceTest.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ internal class CommitServiceTest {
7979
.build()
8080
val commitService = client.projects().commits()
8181

82-
val commit =
82+
val commits =
8383
commitService.list(
8484
CommitListParams.builder()
8585
.projectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
@@ -88,6 +88,6 @@ internal class CommitServiceTest {
8888
.build()
8989
)
9090

91-
commit.validate()
91+
commits.validate()
9292
}
9393
}

openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/projects/InferencePipelineServiceTest.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ internal class InferencePipelineServiceTest {
130130
.build()
131131
val inferencePipelineService = client.projects().inferencePipelines()
132132

133-
val inferencePipeline =
133+
val inferencePipelines =
134134
inferencePipelineService.list(
135135
InferencePipelineListParams.builder()
136136
.projectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
@@ -140,6 +140,6 @@ internal class InferencePipelineServiceTest {
140140
.build()
141141
)
142142

143-
inferencePipeline.validate()
143+
inferencePipelines.validate()
144144
}
145145
}

0 commit comments

Comments
 (0)