Skip to content

Commit 2bf4d02

Browse files
committed
Formatting
1 parent 63c6148 commit 2bf4d02

File tree

3 files changed

+41
-35
lines changed

3 files changed

+41
-35
lines changed

Diff for: Sources/GRPCCore/GRPCClient.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public final class GRPCClient: Sendable {
117117

118118
/// The state of the client.
119119
private enum State: Sendable {
120-
120+
121121
/// The client hasn't been started yet. Can transition to `running` or `stopped`.
122122
case notStarted
123123
/// The client is running and can send RPCs. Can transition to `stopping`.

Diff for: Tests/GRPCCoreTests/Call/Client/ClientInterceptorPipelineOperationTests.swift

+20-17
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,26 @@ import Testing
2020

2121
@Suite("ClientInterceptorPipelineOperation")
2222
struct ClientInterceptorPipelineOperationTests {
23-
@Test("Applies to", arguments: [
24-
(
25-
.all,
26-
[.fooBar, .fooBaz, .barFoo, .barBaz],
27-
[]
28-
),
29-
(
30-
.services([ServiceDescriptor(package: "pkg", service: "foo")]),
31-
[.fooBar, .fooBaz],
32-
[.barFoo, .barBaz]
33-
),
34-
(
35-
.methods([.barFoo]),
36-
[.barFoo],
37-
[.fooBar, .fooBaz, .barBaz]
38-
)
39-
] as [(ClientInterceptorPipelineOperation.Subject, [MethodDescriptor], [MethodDescriptor])])
23+
@Test(
24+
"Applies to",
25+
arguments: [
26+
(
27+
.all,
28+
[.fooBar, .fooBaz, .barFoo, .barBaz],
29+
[]
30+
),
31+
(
32+
.services([ServiceDescriptor(package: "pkg", service: "foo")]),
33+
[.fooBar, .fooBaz],
34+
[.barFoo, .barBaz]
35+
),
36+
(
37+
.methods([.barFoo]),
38+
[.barFoo],
39+
[.fooBar, .fooBaz, .barBaz]
40+
),
41+
] as [(ClientInterceptorPipelineOperation.Subject, [MethodDescriptor], [MethodDescriptor])]
42+
)
4043
func appliesTo(
4144
operationSubject: ClientInterceptorPipelineOperation.Subject,
4245
applicableMethods: [MethodDescriptor],

Diff for: Tests/GRPCCoreTests/Call/Server/ServerInterceptorPipelineOperation.swift

+20-17
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,26 @@ import Testing
2020

2121
@Suite("ServerInterceptorPipelineOperation")
2222
struct ServerInterceptorPipelineOperationTests {
23-
@Test("Applies to", arguments: [
24-
(
25-
.all,
26-
[.fooBar, .fooBaz, .barFoo, .barBaz],
27-
[]
28-
),
29-
(
30-
.services([ServiceDescriptor(package: "pkg", service: "foo")]),
31-
[.fooBar, .fooBaz],
32-
[.barFoo, .barBaz]
33-
),
34-
(
35-
.methods([.barFoo]),
36-
[.barFoo],
37-
[.fooBar, .fooBaz, .barBaz]
38-
)
39-
] as [(ServerInterceptorPipelineOperation.Subject, [MethodDescriptor], [MethodDescriptor])])
23+
@Test(
24+
"Applies to",
25+
arguments: [
26+
(
27+
.all,
28+
[.fooBar, .fooBaz, .barFoo, .barBaz],
29+
[]
30+
),
31+
(
32+
.services([ServiceDescriptor(package: "pkg", service: "foo")]),
33+
[.fooBar, .fooBaz],
34+
[.barFoo, .barBaz]
35+
),
36+
(
37+
.methods([.barFoo]),
38+
[.barFoo],
39+
[.fooBar, .fooBaz, .barBaz]
40+
),
41+
] as [(ServerInterceptorPipelineOperation.Subject, [MethodDescriptor], [MethodDescriptor])]
42+
)
4043
func appliesTo(
4144
operationSubject: ServerInterceptorPipelineOperation.Subject,
4245
applicableMethods: [MethodDescriptor],

0 commit comments

Comments
 (0)