Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
gjcairo committed Nov 15, 2024
1 parent 63c6148 commit 0329e42
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 35 deletions.
2 changes: 1 addition & 1 deletion Sources/GRPCCore/GRPCClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public final class GRPCClient: Sendable {

/// The state of the client.
private enum State: Sendable {

/// The client hasn't been started yet. Can transition to `running` or `stopped`.
case notStarted
/// The client is running and can send RPCs. Can transition to `stopping`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,25 @@ import Testing

@Suite("ClientInterceptorPipelineOperation")
struct ClientInterceptorPipelineOperationTests {
@Test("Applies to", arguments: [
(
.all,
[.fooBar, .fooBaz, .barFoo, .barBaz],
[]
),
(
.services([ServiceDescriptor(package: "pkg", service: "foo")]),
[.fooBar, .fooBaz],
[.barFoo, .barBaz]
),
(
.methods([.barFoo]),
[.barFoo],
[.fooBar, .fooBaz, .barBaz]
)
] as [(ClientInterceptorPipelineOperation.Subject, [MethodDescriptor], [MethodDescriptor])])
@Test(
"Applies to",
arguments: [
(
.all,
[.fooBar, .fooBaz, .barFoo, .barBaz],
[]
),
(
.services([ServiceDescriptor(package: "pkg", service: "foo")]),
[.fooBar, .fooBaz],
[.barFoo, .barBaz]
),
(
.methods([.barFoo]),
[.barFoo],
[.fooBar, .fooBaz, .barBaz]
)
] as [(ClientInterceptorPipelineOperation.Subject, [MethodDescriptor], [MethodDescriptor])])
func appliesTo(
operationSubject: ClientInterceptorPipelineOperation.Subject,
applicableMethods: [MethodDescriptor],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,25 @@ import Testing

@Suite("ServerInterceptorPipelineOperation")
struct ServerInterceptorPipelineOperationTests {
@Test("Applies to", arguments: [
(
.all,
[.fooBar, .fooBaz, .barFoo, .barBaz],
[]
),
(
.services([ServiceDescriptor(package: "pkg", service: "foo")]),
[.fooBar, .fooBaz],
[.barFoo, .barBaz]
),
(
.methods([.barFoo]),
[.barFoo],
[.fooBar, .fooBaz, .barBaz]
)
] as [(ServerInterceptorPipelineOperation.Subject, [MethodDescriptor], [MethodDescriptor])])
@Test(
"Applies to",
arguments: [
(
.all,
[.fooBar, .fooBaz, .barFoo, .barBaz],
[]
),
(
.services([ServiceDescriptor(package: "pkg", service: "foo")]),
[.fooBar, .fooBaz],
[.barFoo, .barBaz]
),
(
.methods([.barFoo]),
[.barFoo],
[.fooBar, .fooBaz, .barBaz]
)
] as [(ServerInterceptorPipelineOperation.Subject, [MethodDescriptor], [MethodDescriptor])])
func appliesTo(
operationSubject: ServerInterceptorPipelineOperation.Subject,
applicableMethods: [MethodDescriptor],
Expand Down

0 comments on commit 0329e42

Please sign in to comment.