We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4432f00 commit 069ccc0Copy full SHA for 069ccc0
Tests/ManagedModelMacrosTests/ManagedModelMacrosTests.swift
@@ -371,6 +371,7 @@ final class ModelMacroTests: XCTestCase {
371
372
// MARK: - Helper
373
374
+#if canImport(ManagedModelMacros)
375
func parseAndExplode(_ source: String) -> Syntax {
376
// Parse the original source file.
377
let sourceFile : SourceFileSyntax = Parser.parse(source: source)
@@ -393,6 +394,7 @@ final class ModelMacroTests: XCTestCase {
393
394
395
return explodedFile
396
}
397
+#endif // canImport(ManagedModelMacros)
398
399
// Note: This does not fail the test, but it does fail the compiler.
400
// https://github.com/Data-swift/ManagedModels/issues/18
0 commit comments