diff --git a/Sources/_OpenAPIGeneratorCore/PlatformChecks.swift b/Sources/_OpenAPIGeneratorCore/PlatformChecks.swift index 01bf66c4..967c3553 100644 --- a/Sources/_OpenAPIGeneratorCore/PlatformChecks.swift +++ b/Sources/_OpenAPIGeneratorCore/PlatformChecks.swift @@ -15,7 +15,9 @@ // Emit a compiler error if this library is linked with a target in an adopter // project. #if !(os(macOS) || os(Linux)) -#error("_OpenAPIGeneratorCore is only to be used by swift-openapi-generator itself—your target should not link this library or the command line tool directly.") +#error( + "_OpenAPIGeneratorCore is only to be used by swift-openapi-generator itself—your target should not link this library or the command line tool directly." +) #endif #if SWIFT_OPENAPI_STRICT_CONCURRENCY diff --git a/Tests/OpenAPIGeneratorCoreTests/TestUtilities.swift b/Tests/OpenAPIGeneratorCoreTests/TestUtilities.swift index 60cb2967..4f6ad7a5 100644 --- a/Tests/OpenAPIGeneratorCoreTests/TestUtilities.swift +++ b/Tests/OpenAPIGeneratorCoreTests/TestUtilities.swift @@ -18,6 +18,8 @@ import OpenAPIKit @testable import _OpenAPIGeneratorCore class Test_Core: XCTestCase { + + /// Setup method called before the invocation of each test method in the class. override func setUp() async throws { try await super.setUp() continueAfterFailure = false diff --git a/Tests/OpenAPIGeneratorCoreTests/Translator/TypeAssignment/Test_TypeMatcher.swift b/Tests/OpenAPIGeneratorCoreTests/Translator/TypeAssignment/Test_TypeMatcher.swift index 8ddb53fb..2b446db3 100644 --- a/Tests/OpenAPIGeneratorCoreTests/Translator/TypeAssignment/Test_TypeMatcher.swift +++ b/Tests/OpenAPIGeneratorCoreTests/Translator/TypeAssignment/Test_TypeMatcher.swift @@ -17,6 +17,7 @@ import OpenAPIKit final class Test_TypeMatcher: Test_Core { + /// Setup method called before the invocation of each test method in the class. override func setUp() async throws { try await super.setUp() continueAfterFailure = false diff --git a/Tests/OpenAPIGeneratorReferenceTests/CompatabilityTest.swift b/Tests/OpenAPIGeneratorReferenceTests/CompatabilityTest.swift index 81e0c5e2..d875bd0f 100644 --- a/Tests/OpenAPIGeneratorReferenceTests/CompatabilityTest.swift +++ b/Tests/OpenAPIGeneratorReferenceTests/CompatabilityTest.swift @@ -28,6 +28,7 @@ final class CompatibilityTest: XCTestCase { let compatibilityTestParallelCodegen = getBoolEnv("SWIFT_OPENAPI_COMPATIBILITY_TEST_PARALLEL_CODEGEN") ?? false let compatibilityTestNumBuildJobs = getIntEnv("SWIFT_OPENAPI_COMPATIBILITY_TEST_NUM_BUILD_JOBS") + /// Setup method called before the invocation of each test method in the class. override func setUp() async throws { continueAfterFailure = false try XCTSkipUnless(compatibilityTestEnabled) diff --git a/Tests/OpenAPIGeneratorReferenceTests/FileBasedReferenceTests.swift b/Tests/OpenAPIGeneratorReferenceTests/FileBasedReferenceTests.swift index 060e7c5b..12e2cee9 100644 --- a/Tests/OpenAPIGeneratorReferenceTests/FileBasedReferenceTests.swift +++ b/Tests/OpenAPIGeneratorReferenceTests/FileBasedReferenceTests.swift @@ -36,6 +36,8 @@ extension TestConfig { /// Tests that the generator produces Swift files that match a reference. class FileBasedReferenceTests: XCTestCase { + + /// Setup method called before the invocation of each test method in the class. override func setUp() { super.setUp() continueAfterFailure = false @@ -56,6 +58,7 @@ class FileBasedReferenceTests: XCTestCase { var referenceTestResourcesDirectory: URL! = nil + /// Setup method called before the invocation of each test method in the class. override func setUpWithError() throws { self.referenceTestResourcesDirectory = try XCTUnwrap( Bundle.module.url(forResource: "Resources", withExtension: nil), diff --git a/Tests/PetstoreConsumerTests/Test_Client.swift b/Tests/PetstoreConsumerTests/Test_Client.swift index f948a52c..fe536924 100644 --- a/Tests/PetstoreConsumerTests/Test_Client.swift +++ b/Tests/PetstoreConsumerTests/Test_Client.swift @@ -28,6 +28,7 @@ final class Test_Client: XCTestCase { } } + /// Setup method called before the invocation of each test method in the class. override func setUp() async throws { try await super.setUp() continueAfterFailure = false diff --git a/Tests/PetstoreConsumerTests/Test_Playground.swift b/Tests/PetstoreConsumerTests/Test_Playground.swift index 20e91d26..ea2f75f9 100644 --- a/Tests/PetstoreConsumerTests/Test_Playground.swift +++ b/Tests/PetstoreConsumerTests/Test_Playground.swift @@ -16,6 +16,8 @@ import OpenAPIRuntime import PetstoreConsumerTestCore final class Test_Playground: XCTestCase { + + /// Setup method called before the invocation of each test method in the class. override func setUp() async throws { try await super.setUp() continueAfterFailure = false diff --git a/Tests/PetstoreConsumerTests/Test_Server.swift b/Tests/PetstoreConsumerTests/Test_Server.swift index d95a6f34..0ecb8d93 100644 --- a/Tests/PetstoreConsumerTests/Test_Server.swift +++ b/Tests/PetstoreConsumerTests/Test_Server.swift @@ -25,6 +25,7 @@ final class Test_Server: XCTestCase { } } + /// Setup method called before the invocation of each test method in the class. override func setUp() async throws { try await super.setUp() continueAfterFailure = false diff --git a/Tests/PetstoreConsumerTests/Test_Types.swift b/Tests/PetstoreConsumerTests/Test_Types.swift index db46aa8a..cec21409 100644 --- a/Tests/PetstoreConsumerTests/Test_Types.swift +++ b/Tests/PetstoreConsumerTests/Test_Types.swift @@ -17,6 +17,7 @@ import PetstoreConsumerTestCore final class Test_Types: XCTestCase { + /// Setup method called before the invocation of each test method in the class. override func setUp() async throws { try await super.setUp() continueAfterFailure = false diff --git a/docker/Dockerfile b/docker/Dockerfile index 33f860d9..76bb652d 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -17,7 +17,7 @@ RUN mkdir -p $HOME/.tools RUN echo 'export PATH="$HOME/.tools:$PATH"' >> $HOME/.profile # swift-format -ARG swiftformat_version=508.0.0 +ARG swiftformat_version=509.0.0 RUN git clone --branch $swiftformat_version --depth 1 https://github.com/apple/swift-format $HOME/.tools/swift-format-source RUN cd $HOME/.tools/swift-format-source && swift build -c release RUN ln -s $HOME/.tools/swift-format-source/.build/release/swift-format $HOME/.tools/swift-format