v1.2.3 release: remove ShoeGaze CLI scaffolding (ShoeGaze now standalone)
This commit is contained in:
@@ -47,27 +47,27 @@ struct CLICommandTests {
|
||||
// MARK: - new
|
||||
|
||||
@Test func newSubcommandParsed() {
|
||||
#expect(CLICommand.parse(["lyrebird", "new", "MySynth"]) == .new(name: "MySynth", template: .basic, lyrebirdPath: nil, shoegazePath: nil))
|
||||
#expect(CLICommand.parse(["lyrebird", "new", "MySynth"]) == .new(name: "MySynth", template: .basic, lyrebirdPath: nil))
|
||||
}
|
||||
|
||||
@Test func newWithTemplateDemoParsed() {
|
||||
#expect(CLICommand.parse(["lyrebird", "new", "MySynth", "--template", "demo"])
|
||||
== .new(name: "MySynth", template: .demo, lyrebirdPath: nil, shoegazePath: nil))
|
||||
== .new(name: "MySynth", template: .demo, lyrebirdPath: nil))
|
||||
}
|
||||
|
||||
@Test func newWithTemplateUIDemoParsed() {
|
||||
#expect(CLICommand.parse(["lyrebird", "new", "MySynth", "--template", "ui-demo"])
|
||||
== .new(name: "MySynth", template: .uiDemo, lyrebirdPath: nil, shoegazePath: nil))
|
||||
== .new(name: "MySynth", template: .uiDemo, lyrebirdPath: nil))
|
||||
}
|
||||
|
||||
@Test func newWithTemplateNRTParsed() {
|
||||
#expect(CLICommand.parse(["lyrebird", "new", "MySynth", "--template", "nrt"])
|
||||
== .new(name: "MySynth", template: .nrt, lyrebirdPath: nil, shoegazePath: nil))
|
||||
== .new(name: "MySynth", template: .nrt, lyrebirdPath: nil))
|
||||
}
|
||||
|
||||
@Test func newWithUnknownTemplateFallsBackToBasic() {
|
||||
#expect(CLICommand.parse(["lyrebird", "new", "MySynth", "--template", "bogus"])
|
||||
== .new(name: "MySynth", template: .basic, lyrebirdPath: nil, shoegazePath: nil))
|
||||
== .new(name: "MySynth", template: .basic, lyrebirdPath: nil))
|
||||
}
|
||||
|
||||
@Test func newWithoutNameParsesToHelp() {
|
||||
@@ -89,8 +89,7 @@ struct CLICommandTests {
|
||||
"--lyrebird-path", "/Users/josh/Documents/LyrebirdII"
|
||||
]) == .new(name: "MyPiece",
|
||||
template: .basic,
|
||||
lyrebirdPath: "/Users/josh/Documents/LyrebirdII",
|
||||
shoegazePath: nil))
|
||||
lyrebirdPath: "/Users/josh/Documents/LyrebirdII"))
|
||||
}
|
||||
|
||||
@Test func newWithTemplateAndLyrebirdPathParsed() {
|
||||
@@ -100,70 +99,13 @@ struct CLICommandTests {
|
||||
"--lyrebird-path", "/abs/path"
|
||||
]) == .new(name: "MyApp",
|
||||
template: .macosUIXcode,
|
||||
lyrebirdPath: "/abs/path",
|
||||
shoegazePath: nil))
|
||||
lyrebirdPath: "/abs/path"))
|
||||
}
|
||||
|
||||
@Test func newWithoutLyrebirdPathReportsNil() {
|
||||
#expect(CLICommand.parse([
|
||||
"lyrebird", "new", "MyPiece"
|
||||
]) == .new(name: "MyPiece", template: .basic, lyrebirdPath: nil, shoegazePath: nil))
|
||||
}
|
||||
|
||||
// MARK: - shoegaze template
|
||||
|
||||
@Test func newWithTemplateShoegaze() {
|
||||
let cmd: CLICommand = CLICommand.parse(["lyrebird", "new", "MyRig", "--template", "shoegaze"])
|
||||
#expect(cmd == .new(name: "MyRig", template: .shoegaze, lyrebirdPath: nil, shoegazePath: nil))
|
||||
}
|
||||
|
||||
@Test func newWithShoegazePathParsed() {
|
||||
let cmd: CLICommand = CLICommand.parse([
|
||||
"lyrebird", "new", "MyRig",
|
||||
"--template", "shoegaze",
|
||||
"--lyrebird-path", "/abs/Lyrebird",
|
||||
"--shoegaze-path", "/abs/ShoeGaze",
|
||||
])
|
||||
#expect(cmd == .new(
|
||||
name: "MyRig",
|
||||
template: .shoegaze,
|
||||
lyrebirdPath: "/abs/Lyrebird",
|
||||
shoegazePath: "/abs/ShoeGaze"
|
||||
))
|
||||
}
|
||||
|
||||
@Test func newShoegazeWithoutShoegazePathHasNilShoegazePath() {
|
||||
let cmd: CLICommand = CLICommand.parse([
|
||||
"lyrebird", "new", "MyRig",
|
||||
"--template", "shoegaze",
|
||||
"--lyrebird-path", "/abs/Lyrebird",
|
||||
])
|
||||
#expect(cmd == .new(
|
||||
name: "MyRig",
|
||||
template: .shoegaze,
|
||||
lyrebirdPath: "/abs/Lyrebird",
|
||||
shoegazePath: nil
|
||||
))
|
||||
}
|
||||
|
||||
@Test func shoegazePathValueNotConsumedWhenFlagToken() {
|
||||
// `--shoegaze-path --lyrebird-path /abs/Lyrebird` — the value slot for
|
||||
// `--shoegaze-path` is `--lyrebird-path` (starts with "-") → shoegazePath = nil.
|
||||
// `firstIndex(of: "--lyrebird-path")` finds the first occurrence (index 6)
|
||||
// whose next token is also "--lyrebird-path" (starts with "-") → lyrebirdPath = nil too.
|
||||
let args: [String] = [
|
||||
"lyrebird", "new", "MyRig",
|
||||
"--template", "shoegaze",
|
||||
"--shoegaze-path", "--lyrebird-path",
|
||||
"--lyrebird-path", "/abs/Lyrebird",
|
||||
]
|
||||
let cmd: CLICommand = CLICommand.parse(args)
|
||||
#expect(cmd == .new(
|
||||
name: "MyRig",
|
||||
template: .shoegaze,
|
||||
lyrebirdPath: nil,
|
||||
shoegazePath: nil
|
||||
))
|
||||
]) == .new(name: "MyPiece", template: .basic, lyrebirdPath: nil))
|
||||
}
|
||||
|
||||
// MARK: - run
|
||||
|
||||
@@ -237,12 +237,6 @@ struct ProjectScaffolderTests {
|
||||
#expect(ProjectTemplate(string: "iosui") == .iosUI)
|
||||
#expect(ProjectTemplate(string: "auv3") == .auv3)
|
||||
#expect(ProjectTemplate(string: "AUV3") == .auv3)
|
||||
#expect(ProjectTemplate(string: "shoegaze") == .shoegaze)
|
||||
#expect(ProjectTemplate(string: "shoe-gaze") == .shoegaze)
|
||||
#expect(ProjectTemplate(string: "SHOEGAZE") == .shoegaze)
|
||||
#expect(ProjectTemplate(string: "shoegaze-ios") == .shoegazeIOS)
|
||||
#expect(ProjectTemplate(string: "shoegazeios") == .shoegazeIOS)
|
||||
#expect(ProjectTemplate(string: "SHOEGAZE-IOS") == .shoegazeIOS)
|
||||
}
|
||||
|
||||
@Test func shipsXcodeProjectClassification() {
|
||||
@@ -251,244 +245,9 @@ struct ProjectScaffolderTests {
|
||||
#expect(ProjectTemplate.uiDemo.shipsXcodeProject == false)
|
||||
#expect(ProjectTemplate.nrt.shipsXcodeProject == false)
|
||||
#expect(ProjectTemplate.score.shipsXcodeProject == false)
|
||||
// shoegaze is now an Xcode-bearing template (macOS .app bundle).
|
||||
#expect(ProjectTemplate.shoegaze.shipsXcodeProject == true)
|
||||
#expect(ProjectTemplate.macosUIXcode.shipsXcodeProject == true)
|
||||
#expect(ProjectTemplate.iosUI.shipsXcodeProject == true)
|
||||
#expect(ProjectTemplate.auv3.shipsXcodeProject == true)
|
||||
#expect(ProjectTemplate.shoegazeIOS.shipsXcodeProject == true)
|
||||
}
|
||||
|
||||
// MARK: - shoegaze template (macOS Xcode app)
|
||||
|
||||
@Test func shoegazeMacOSScaffoldCreatesAllFiles() throws {
|
||||
let fm: FileManager = FileManager.default
|
||||
let tmp: String = fm.temporaryDirectory
|
||||
.appendingPathComponent("LyrebirdScaffolderTest_\(UUID().uuidString)").path
|
||||
try fm.createDirectory(atPath: tmp, withIntermediateDirectories: true, attributes: nil)
|
||||
defer { try? fm.removeItem(atPath: tmp) }
|
||||
|
||||
try ProjectScaffolder.scaffold(name: "MyRig", template: .shoegaze, in: tmp)
|
||||
|
||||
let root: String = (tmp as NSString).appendingPathComponent("MyRig")
|
||||
let expected: [String] = [
|
||||
"MyRig.xcodeproj/project.pbxproj",
|
||||
"MyRig.xcodeproj/xcshareddata/xcschemes/MyRig.xcscheme",
|
||||
"MyRig.xcworkspace/contents.xcworkspacedata",
|
||||
"MyRig/MyRigApp.swift",
|
||||
"MyRig/MyRigAppModel.swift",
|
||||
"MyRig/Info.plist",
|
||||
]
|
||||
for rel: String in expected {
|
||||
let path: String = (root as NSString).appendingPathComponent(rel)
|
||||
#expect(fm.fileExists(atPath: path),
|
||||
"missing shoegaze macOS file: \(rel)")
|
||||
}
|
||||
}
|
||||
|
||||
@Test func shoegazeMacOSWorkspaceReferencesXcodeproj() throws {
|
||||
let fm: FileManager = FileManager.default
|
||||
let tmp: String = fm.temporaryDirectory
|
||||
.appendingPathComponent("LyrebirdScaffolderTest_\(UUID().uuidString)").path
|
||||
try fm.createDirectory(atPath: tmp, withIntermediateDirectories: true, attributes: nil)
|
||||
defer { try? fm.removeItem(atPath: tmp) }
|
||||
|
||||
try ProjectScaffolder.scaffold(name: "MyRig", template: .shoegaze, in: tmp)
|
||||
|
||||
let workspacePath: String = (tmp as NSString)
|
||||
.appendingPathComponent("MyRig/MyRig.xcworkspace/contents.xcworkspacedata")
|
||||
let contents: String = try String(contentsOfFile: workspacePath, encoding: .utf8)
|
||||
#expect(contents.contains("group:MyRig.xcodeproj"))
|
||||
}
|
||||
|
||||
@Test func shoegazeMacOSAppSwiftContainsShoeGazeView() {
|
||||
let src: String = ProjectScaffolder.shoegazeMacOSAppSwift(name: "MyRig")
|
||||
#expect(src.contains("ShoeGazeView"))
|
||||
#expect(src.contains("import LyrebirdShoeGazeUI"))
|
||||
#expect(src.contains("@main"))
|
||||
#expect(src.contains("toggleMute"))
|
||||
#expect(src.contains(".keyboardShortcut"))
|
||||
// Must not embed the Lyrebird copyright in emitted user source.
|
||||
#expect(!src.contains("Joshua Parmenter"))
|
||||
}
|
||||
|
||||
@Test func shoegazeMacOSAppSwiftSubstitutesName() {
|
||||
let src: String = ProjectScaffolder.shoegazeMacOSAppSwift(name: "GuitarPedals")
|
||||
#expect(src.contains("GuitarPedalsApp"))
|
||||
#expect(src.contains("GuitarPedalsAppModel"))
|
||||
}
|
||||
|
||||
@Test func shoegazeMacOSAppModelContainsEngineAndBoard() {
|
||||
let src: String = ProjectScaffolder.shoegazeMacOSAppModelSwift(name: "MyRig")
|
||||
#expect(src.contains("import LyrebirdShoeGaze"))
|
||||
#expect(src.contains("CoreAudioDriver"))
|
||||
#expect(src.contains("ShoeGaze(engine:"))
|
||||
#expect(src.contains("OverdrivePedal"))
|
||||
#expect(src.contains("DelayPedal"))
|
||||
#expect(src.contains("ReverbPedal"))
|
||||
#expect(src.contains("ModulationPedal"))
|
||||
#expect(src.contains("@Observable"))
|
||||
#expect(src.contains("toggleMute"))
|
||||
// Must not embed the Lyrebird copyright in emitted user source.
|
||||
#expect(!src.contains("Joshua Parmenter"))
|
||||
}
|
||||
|
||||
@Test func shoegazeMacOSAppModelSubstitutesName() {
|
||||
let src: String = ProjectScaffolder.shoegazeMacOSAppModelSwift(name: "GuitarPedals")
|
||||
#expect(src.contains("GuitarPedalsAppModel"))
|
||||
#expect(src.contains("GuitarPedals"))
|
||||
}
|
||||
|
||||
@Test func shoegazeMacOSInfoPlistContainsMicrophoneKey() {
|
||||
let plist: String = ProjectScaffolder.shoegazeMacOSInfoPlist(name: "MyRig")
|
||||
#expect(plist.contains("NSMicrophoneUsageDescription"))
|
||||
#expect(plist.contains("LSMinimumSystemVersion"))
|
||||
#expect(plist.contains("NSHighResolutionCapable"))
|
||||
#expect(plist.contains("public.app-category.music"))
|
||||
#expect(plist.contains("NSPrincipalClass"))
|
||||
}
|
||||
|
||||
@Test func shoegazeMacOSPBXProjReferencesMacOSXAndShoeGaze() {
|
||||
let pbx: String = ProjectScaffolder.shoegazeMacOSPBXProj(name: "MyRig")
|
||||
#expect(pbx.contains("SDKROOT = macosx"))
|
||||
#expect(pbx.contains("MACOSX_DEPLOYMENT_TARGET = 15.0"))
|
||||
#expect(pbx.contains("ENABLE_HARDENED_RUNTIME = YES"))
|
||||
#expect(pbx.contains("LyrebirdShoeGaze"))
|
||||
#expect(pbx.contains("LyrebirdShoeGazeUI"))
|
||||
#expect(pbx.contains("LyrebirdUI"))
|
||||
#expect(pbx.contains("Lyrebird"))
|
||||
#expect(pbx.contains(ProjectScaffolder.shoegazePackageURL))
|
||||
#expect(pbx.contains("MyRig.app"))
|
||||
}
|
||||
|
||||
@Test func shoegazeMacOSPBXProjUsesLocalRefsWhenPathsSet() {
|
||||
let pbx: String = ProjectScaffolder.shoegazeMacOSPBXProj(
|
||||
name: "MyRig",
|
||||
lyrebirdPath: "/abs/Lyrebird",
|
||||
shoegazePath: "/abs/ShoeGaze"
|
||||
)
|
||||
#expect(pbx.contains("XCLocalSwiftPackageReference"))
|
||||
#expect(pbx.contains(#"relativePath = "/abs/ShoeGaze""#))
|
||||
#expect(pbx.contains(#"relativePath = "/abs/Lyrebird""#))
|
||||
#expect(!pbx.contains("XCRemoteSwiftPackageReference"))
|
||||
}
|
||||
|
||||
@Test func shoegazeMacOSPBXProjUsesRemoteRefsWhenPathsNil() {
|
||||
let pbx: String = ProjectScaffolder.shoegazeMacOSPBXProj(name: "MyRig")
|
||||
#expect(pbx.contains("XCRemoteSwiftPackageReference"))
|
||||
#expect(pbx.contains(ProjectScaffolder.shoegazePackageURL))
|
||||
#expect(pbx.contains(ProjectScaffolder.lyrebirdPackageURL))
|
||||
}
|
||||
|
||||
// MARK: - shoegaze-ios template
|
||||
|
||||
@Test func shoegazeIOSScaffoldCreatesAllFiles() throws {
|
||||
let fm: FileManager = FileManager.default
|
||||
let tmp: String = fm.temporaryDirectory
|
||||
.appendingPathComponent("LyrebirdScaffolderTest_\(UUID().uuidString)").path
|
||||
try fm.createDirectory(atPath: tmp, withIntermediateDirectories: true, attributes: nil)
|
||||
defer { try? fm.removeItem(atPath: tmp) }
|
||||
|
||||
try ProjectScaffolder.scaffold(name: "MyRig", template: .shoegazeIOS, in: tmp)
|
||||
|
||||
let root: String = (tmp as NSString).appendingPathComponent("MyRig")
|
||||
let expected: [String] = [
|
||||
"MyRig.xcodeproj/project.pbxproj",
|
||||
"MyRig.xcodeproj/xcshareddata/xcschemes/MyRig.xcscheme",
|
||||
"MyRig.xcworkspace/contents.xcworkspacedata",
|
||||
"MyRig/MyRigApp.swift",
|
||||
"MyRig/MyRigAppModel.swift",
|
||||
"MyRig/Info.plist",
|
||||
]
|
||||
for rel: String in expected {
|
||||
let path: String = (root as NSString).appendingPathComponent(rel)
|
||||
#expect(fm.fileExists(atPath: path),
|
||||
"missing shoegaze-ios file: \(rel)")
|
||||
}
|
||||
}
|
||||
|
||||
@Test func shoegazeIOSAppSwiftContainsShoeGazeView() {
|
||||
let src: String = ProjectScaffolder.shoegazeIOSAppSwift(name: "MyRig")
|
||||
#expect(src.contains("ShoeGazeView"))
|
||||
#expect(src.contains("import LyrebirdShoeGazeUI"))
|
||||
#expect(src.contains("@main"))
|
||||
#expect(src.contains("NavigationStack"))
|
||||
#expect(src.contains("ScrollView"))
|
||||
// Must not embed the Lyrebird copyright in emitted user source.
|
||||
#expect(!src.contains("Joshua Parmenter"))
|
||||
}
|
||||
|
||||
@Test func shoegazeIOSAppSwiftSubstitutesName() {
|
||||
let src: String = ProjectScaffolder.shoegazeIOSAppSwift(name: "GuitarPedals")
|
||||
#expect(src.contains("GuitarPedalsApp"))
|
||||
#expect(src.contains("GuitarPedalsAppModel"))
|
||||
}
|
||||
|
||||
@Test func shoegazeIOSAppModelContainsEngineAndBoard() {
|
||||
let src: String = ProjectScaffolder.shoegazeIOSAppModelSwift(name: "MyRig")
|
||||
#expect(src.contains("import LyrebirdShoeGaze"))
|
||||
#expect(src.contains("iOSAudioDriver"))
|
||||
#expect(src.contains("AVAudioSession"))
|
||||
#expect(src.contains("ShoeGaze(engine:"))
|
||||
#expect(src.contains("OverdrivePedal"))
|
||||
#expect(src.contains("DelayPedal"))
|
||||
#expect(src.contains("ReverbPedal"))
|
||||
#expect(src.contains("ModulationPedal"))
|
||||
#expect(src.contains("@Observable"))
|
||||
// Must not embed the Lyrebird copyright in emitted user source.
|
||||
#expect(!src.contains("Joshua Parmenter"))
|
||||
}
|
||||
|
||||
@Test func shoegazeIOSAppModelSubstitutesName() {
|
||||
let src: String = ProjectScaffolder.shoegazeIOSAppModelSwift(name: "GuitarPedals")
|
||||
#expect(src.contains("GuitarPedalsAppModel"))
|
||||
#expect(src.contains("GuitarPedals"))
|
||||
}
|
||||
|
||||
@Test func shoegazeIOSPBXProjReferencesIPhoneOSAndShoeGaze() {
|
||||
let pbx: String = ProjectScaffolder.shoegazeIOSPBXProj(name: "MyRig")
|
||||
#expect(pbx.contains("SDKROOT = iphoneos"))
|
||||
#expect(pbx.contains("IPHONEOS_DEPLOYMENT_TARGET = 18.0"))
|
||||
#expect(pbx.contains("TARGETED_DEVICE_FAMILY"))
|
||||
#expect(pbx.contains("LyrebirdShoeGaze"))
|
||||
#expect(pbx.contains("LyrebirdShoeGazeUI"))
|
||||
#expect(pbx.contains("LyrebirdUI"))
|
||||
#expect(pbx.contains(ProjectScaffolder.shoegazePackageURL))
|
||||
#expect(pbx.contains("MyRig.app"))
|
||||
}
|
||||
|
||||
@Test func shoegazeIOSPBXProjUsesLocalShoegazeRefWhenPathSet() {
|
||||
let pbx: String = ProjectScaffolder.shoegazeIOSPBXProj(
|
||||
name: "MyRig",
|
||||
lyrebirdPath: "/abs/Lyrebird",
|
||||
shoegazePath: "/abs/ShoeGaze"
|
||||
)
|
||||
#expect(pbx.contains("XCLocalSwiftPackageReference"))
|
||||
#expect(pbx.contains(#"relativePath = "/abs/ShoeGaze""#))
|
||||
#expect(pbx.contains(#"relativePath = "/abs/Lyrebird""#))
|
||||
#expect(!pbx.contains("XCRemoteSwiftPackageReference"))
|
||||
}
|
||||
|
||||
@Test func shoegazeIOSPBXProjUsesRemoteRefWhenPathsNil() {
|
||||
let pbx: String = ProjectScaffolder.shoegazeIOSPBXProj(name: "MyRig")
|
||||
#expect(pbx.contains("XCRemoteSwiftPackageReference"))
|
||||
#expect(pbx.contains(ProjectScaffolder.shoegazePackageURL))
|
||||
#expect(pbx.contains(ProjectScaffolder.lyrebirdPackageURL))
|
||||
}
|
||||
|
||||
@Test func shoegazeIOSWorkspaceReferencesXcodeproj() throws {
|
||||
let fm: FileManager = FileManager.default
|
||||
let tmp: String = fm.temporaryDirectory
|
||||
.appendingPathComponent("LyrebirdScaffolderTest_\(UUID().uuidString)").path
|
||||
try fm.createDirectory(atPath: tmp, withIntermediateDirectories: true, attributes: nil)
|
||||
defer { try? fm.removeItem(atPath: tmp) }
|
||||
|
||||
try ProjectScaffolder.scaffold(name: "MyRig", template: .shoegazeIOS, in: tmp)
|
||||
|
||||
let workspacePath: String = (tmp as NSString)
|
||||
.appendingPathComponent("MyRig/MyRig.xcworkspace/contents.xcworkspacedata")
|
||||
let contents: String = try String(contentsOfFile: workspacePath, encoding: .utf8)
|
||||
#expect(contents.contains("group:MyRig.xcodeproj"))
|
||||
}
|
||||
|
||||
// MARK: - Xcode-bearing templates: structure
|
||||
|
||||
@@ -37,13 +37,6 @@ struct TemplateInstallerTests {
|
||||
#expect(names.contains("LyrebirdGenerator.xctemplate"))
|
||||
}
|
||||
|
||||
@Test func availableTemplatesIncludesShoeGazePedal() throws {
|
||||
let names: [String] = try TemplateInstaller.availableTemplates()
|
||||
// The ShoeGaze Pedal template scaffolds a `Pedal` subclass for the
|
||||
// guitar-pedalboard sample project.
|
||||
#expect(names.contains("LyrebirdShoeGazePedal.xctemplate"))
|
||||
}
|
||||
|
||||
// MARK: - Destination URL
|
||||
|
||||
@Test func destinationURLIsInHomeLibrary() {
|
||||
|
||||
@@ -185,28 +185,4 @@ struct WorkflowIntegrationTests {
|
||||
#expect(try parseCheck(source: source, fileName: "main.swift"),
|
||||
"nrt template main.swift must pass swiftc -parse")
|
||||
}
|
||||
|
||||
@Test func shoegazeIOSAppSwiftIsValidSwiftSyntax() throws {
|
||||
let source: String = ProjectScaffolder.shoegazeIOSAppSwift(name: "MyRig")
|
||||
#expect(try parseCheck(source: source, fileName: "MyRigApp.swift"),
|
||||
"shoegaze-ios App.swift must pass swiftc -parse")
|
||||
}
|
||||
|
||||
@Test func shoegazeIOSAppModelSwiftIsValidSwiftSyntax() throws {
|
||||
let source: String = ProjectScaffolder.shoegazeIOSAppModelSwift(name: "MyRig")
|
||||
#expect(try parseCheck(source: source, fileName: "MyRigAppModel.swift"),
|
||||
"shoegaze-ios AppModel.swift must pass swiftc -parse")
|
||||
}
|
||||
|
||||
@Test func shoegazeMacOSAppSwiftIsValidSwiftSyntax() throws {
|
||||
let source: String = ProjectScaffolder.shoegazeMacOSAppSwift(name: "MyRig")
|
||||
#expect(try parseCheck(source: source, fileName: "MyRigApp.swift"),
|
||||
"shoegaze macOS App.swift must pass swiftc -parse")
|
||||
}
|
||||
|
||||
@Test func shoegazeMacOSAppModelSwiftIsValidSwiftSyntax() throws {
|
||||
let source: String = ProjectScaffolder.shoegazeMacOSAppModelSwift(name: "MyRig")
|
||||
#expect(try parseCheck(source: source, fileName: "MyRigAppModel.swift"),
|
||||
"shoegaze macOS AppModel.swift must pass swiftc -parse")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user