File tree Expand file tree Collapse file tree
Copilot for Xcode.xcodeproj Expand file tree Collapse file tree Original file line number Diff line number Diff line change 143143 C8189B202938973000C9DCDA /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
144144 C8189B222938973000C9DCDA /* Copilot_for_Xcode.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Copilot_for_Xcode.entitlements; sourceTree = "<group>"; };
145145 C8189B282938979000C9DCDA /* Core */ = {isa = PBXFileReference; lastKnownFileType = wrapper; path = Core; sourceTree = "<group>"; };
146+ C81D181E2A1B509B006C1B70 /* Tool */ = {isa = PBXFileReference; lastKnownFileType = wrapper; path = Tool; sourceTree = "<group>"; };
146147 C81E867D296FE4420026E908 /* Version.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Version.xcconfig; sourceTree = "<group>"; };
147148 C8216B70298036EC00AD38C7 /* Helper */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = Helper; sourceTree = BUILT_PRODUCTS_DIR; };
148149 C8216B72298036EC00AD38C7 /* main.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = main.swift; sourceTree = "<group>"; };
248249 C81458AD293A009600135263 /* Config.xcconfig */,
249250 C81458AE293A009800135263 /* Config.debug.xcconfig */,
250251 C8CD828229B88006008D044D /* TestPlan.xctestplan */,
252+ C81D181E2A1B509B006C1B70 /* Tool */,
251253 C8189B282938979000C9DCDA /* Core */,
252254 C8189B182938972F00C9DCDA /* Copilot for Xcode */,
253255 C81458922939EFDC00135263 /* EditorExtension */,
Original file line number Diff line number Diff line change 1+ .DS_Store
2+ /.build
3+ /Packages
4+ /* .xcodeproj
5+ xcuserdata /
6+ DerivedData /
7+ .swiftpm /config /registries.json
8+ .swiftpm /xcode /package.xcworkspace /contents.xcworkspacedata
9+ .netrc
Original file line number Diff line number Diff line change 1+ // swift-tools-version: 5.8
2+ // The swift-tools-version declares the minimum version of Swift required to build this package.
3+
4+ import PackageDescription
5+
6+ let package = Package (
7+ name: " Tool " ,
8+ products: [
9+ // Products define the executables and libraries a package produces, and make them visible to other packages.
10+ . library(
11+ name: " Tool " ,
12+ targets: [ " Tool " ] ) ,
13+ ] ,
14+ dependencies: [
15+ // Dependencies declare other packages that this package depends on.
16+ // .package(url: /* package url */, from: "1.0.0"),
17+ ] ,
18+ targets: [
19+ // Targets are the basic building blocks of a package. A target can define a module or a test suite.
20+ // Targets can depend on other targets in this package, and on products in packages this package depends on.
21+ . target(
22+ name: " Tool " ,
23+ dependencies: [ ] ) ,
24+ . testTarget(
25+ name: " ToolTests " ,
26+ dependencies: [ " Tool " ] ) ,
27+ ]
28+ )
Original file line number Diff line number Diff line change 1+ # Tool
2+
3+ A description of this package.
Original file line number Diff line number Diff line change 1+ public struct Tool {
2+ public private( set) var text = " Hello, World! "
3+
4+ public init ( ) {
5+ }
6+ }
Original file line number Diff line number Diff line change 1+ import XCTest
2+ @testable import Tool
3+
4+ final class ToolTests : XCTestCase {
5+ func testExample( ) throws {
6+ // This is an example of a functional test case.
7+ // Use XCTAssert and related functions to verify your tests produce the correct
8+ // results.
9+ XCTAssertEqual ( Tool ( ) . text, " Hello, World! " )
10+ }
11+ }
You can’t perform that action at this time.
0 commit comments