From 0329e42afce50ade8ac997e386c0afef319b8fc6 Mon Sep 17 00:00:00 2001 From: Gus Cairo Date: Fri, 15 Nov 2024 10:44:24 +0000 Subject: [PATCH] Formatting --- Sources/GRPCCore/GRPCClient.swift | 2 +- ...entInterceptorPipelineOperationTests.swift | 36 ++++++++++--------- .../ServerInterceptorPipelineOperation.swift | 36 ++++++++++--------- 3 files changed, 39 insertions(+), 35 deletions(-) diff --git a/Sources/GRPCCore/GRPCClient.swift b/Sources/GRPCCore/GRPCClient.swift index e527017bf..79e3deb4a 100644 --- a/Sources/GRPCCore/GRPCClient.swift +++ b/Sources/GRPCCore/GRPCClient.swift @@ -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`. diff --git a/Tests/GRPCCoreTests/Call/Client/ClientInterceptorPipelineOperationTests.swift b/Tests/GRPCCoreTests/Call/Client/ClientInterceptorPipelineOperationTests.swift index eaa33f5c7..7cde0d1e1 100644 --- a/Tests/GRPCCoreTests/Call/Client/ClientInterceptorPipelineOperationTests.swift +++ b/Tests/GRPCCoreTests/Call/Client/ClientInterceptorPipelineOperationTests.swift @@ -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], diff --git a/Tests/GRPCCoreTests/Call/Server/ServerInterceptorPipelineOperation.swift b/Tests/GRPCCoreTests/Call/Server/ServerInterceptorPipelineOperation.swift index f39bb6026..1a128ea32 100644 --- a/Tests/GRPCCoreTests/Call/Server/ServerInterceptorPipelineOperation.swift +++ b/Tests/GRPCCoreTests/Call/Server/ServerInterceptorPipelineOperation.swift @@ -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],