Make Formatter Happy

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
Will Hawkins
2026-05-21 22:42:55 -04:00
parent d60465e669
commit 017d5670c0
+8 -6
View File
@@ -310,11 +310,12 @@ public struct CliTestDeclarationMacro: PeerMacro, Sendable {
let cli_test_driver_thunk_name = context.makeUniqueName( let cli_test_driver_thunk_name = context.makeUniqueName(
declaration.cast(FunctionDeclSyntax.self).name.text + "_thunk_") declaration.cast(FunctionDeclSyntax.self).name.text + "_thunk_")
let (expected_decl, expected_label) = if cli_test_expected_output.isEmpty { let (expected_decl, expected_label) =
("let expected = \"\(test_name)\"", "withExpectedPath:") if cli_test_expected_output.isEmpty {
} else { ("let expected = \"\(test_name)\"", "withExpectedPath:")
("let expected = \"\(cli_test_expected_output)\"", "withExpected:") } else {
} ("let expected = \"\(cli_test_expected_output)\"", "withExpected:")
}
let cli_test_driver_thunk: DeclSyntax = """ let cli_test_driver_thunk: DeclSyntax = """
@Sendable private func \(cli_test_driver_thunk_name)() async throws { @Sendable private func \(cli_test_driver_thunk_name)() async throws {
@@ -361,7 +362,8 @@ public struct CliTestDeclarationMacro: PeerMacro, Sendable {
) )
""" """
let cli_test_driver_content_container_name = context.makeUniqueName(test_name.text + "__🟡$_container_") let cli_test_driver_content_container_name = context.makeUniqueName(
test_name.text + "__🟡$_container_")
let cli_test_driver_container: DeclSyntax = """ let cli_test_driver_container: DeclSyntax = """
struct \(cli_test_driver_content_container_name): Testing.__TestContentRecordContainer { struct \(cli_test_driver_content_container_name): Testing.__TestContentRecordContainer {
nonisolated static var __testContentRecord: TestContentRecord { nonisolated static var __testContentRecord: TestContentRecord {