@@ -310,7 +310,8 @@ 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) =
|
||||||
|
if cli_test_expected_output.isEmpty {
|
||||||
("let expected = \"\(test_name)\"", "withExpectedPath:")
|
("let expected = \"\(test_name)\"", "withExpectedPath:")
|
||||||
} else {
|
} else {
|
||||||
("let expected = \"\(cli_test_expected_output)\"", "withExpected:")
|
("let expected = \"\(cli_test_expected_output)\"", "withExpected:")
|
||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user