Skip to content

Commit

Permalink
Removed Xcode static headers
Browse files Browse the repository at this point in the history
  • Loading branch information
rofle100lvl committed Aug 16, 2024
1 parent c565aea commit 8c1ef69
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 45 deletions.
2 changes: 1 addition & 1 deletion Sources/Commands/VersionCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public struct VersionCommand: FrontendCommand {
abstract: "Display the version of Periphery"
)

public init() { }
public init() { }

public func run() throws {
print(PeripheryVersion)
Expand Down
60 changes: 30 additions & 30 deletions Tests/FrontendTests/ScanTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,35 @@ import Commands
import Shared

final class ScanTests: XCTestCase {
fileprivate let packageRootPath = URL(fileURLWithPath: #file).pathComponents
.prefix(while: { $0 != "Tests" }).joined(separator: "/").dropFirst()

func testScanWorkspaceWithPath() async throws {
var file = FilePath(String(packageRootPath))

file.append(FilePath.Component("fixtures"))
file.append(FilePath.Component("DefaultiOSProject"))
file.append(FilePath.Component("DefaultiOSProject.xcodeproj"))
fileprivate let packageRootPath = URL(fileURLWithPath: #file).pathComponents
.prefix(while: { $0 != "Tests" }).joined(separator: "/").dropFirst()

let command = try ScanCommand.parse(
[
"--project", "\(file.url.path())",
"--schemes", "DefaultiOSProject"
]
)
try command.run()

XCTAssertTrue(LoggerStorage.collectedLogs.contains(
[
"* Inspecting project...",
"* Building DefaultiOSProject...",
"* Indexing...",
"* Analyzing...",
"",
"* No unused code detected."
]
)
)
}
func testScanWorkspaceWithPath() async throws {
var file = FilePath(String(packageRootPath))

file.append(FilePath.Component("fixtures"))
file.append(FilePath.Component("DefaultiOSProject"))
file.append(FilePath.Component("DefaultiOSProject.xcodeproj"))

let command = try ScanCommand.parse(
[
"--project", "\(file.url.path())",
"--schemes", "DefaultiOSProject"
]
)
try command.run()

XCTAssertTrue(LoggerStorage.collectedLogs.contains(
[
"* Inspecting project...",
"* Building DefaultiOSProject...",
"* Indexing...",
"* Analyzing...",
"",
"* No unused code detected."
]
)
)
}
}

Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// ContentView.swift
// DefaultiOSProject
//
// Created by Roman Gorbenko on 15.08.2024.
//

import SwiftUI

struct ContentView: View {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
//
// DefaultiOSProjectApp.swift
// DefaultiOSProject
//
// Created by Roman Gorbenko on 15.08.2024.
//

import SwiftUI

@main
Expand Down

0 comments on commit 8c1ef69

Please sign in to comment.