Skip to content

Commit 799ae2a

Browse files
committed
Add tests for CodeDiff
1 parent d61820b commit 799ae2a

File tree

4 files changed

+293
-17
lines changed

4 files changed

+293
-17
lines changed

TestPlan.xctestplan

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,13 @@
154154
"identifier" : "SuggestionInjectorTests",
155155
"name" : "SuggestionInjectorTests"
156156
}
157+
},
158+
{
159+
"target" : {
160+
"containerPath" : "container:",
161+
"identifier" : "CodeDiffTests",
162+
"name" : "CodeDiffTests"
163+
}
157164
}
158165
],
159166
"version" : 1

Tool/Package.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ let package = Package(
246246
"Preferences",
247247
"SuggestionBasic",
248248
"DebounceFunction",
249+
"CodeDiff",
249250
.product(name: "ComposableArchitecture", package: "swift-composable-architecture"),
250251
]
251252
),
@@ -327,6 +328,7 @@ let package = Package(
327328
"ObjectiveCExceptionHandling",
328329
"USearchIndex",
329330
"ChatBasic",
331+
.product(name: "JSONRPC", package: "JSONRPC"),
330332
.product(name: "Parsing", package: "swift-parsing"),
331333
.product(name: "SwiftSoup", package: "SwiftSoup"),
332334
]
@@ -358,6 +360,7 @@ let package = Package(
358360
"BuiltinExtension",
359361
"Toast",
360362
"SuggestionProvider",
363+
.product(name: "JSONRPC", package: "JSONRPC"),
361364
.product(name: "LanguageServerProtocol", package: "LanguageServerProtocol"),
362365
.product(name: "CopilotForXcodeKit", package: "CopilotForXcodeKit"),
363366
],
@@ -381,6 +384,7 @@ let package = Package(
381384
"XcodeInspector",
382385
"BuiltinExtension",
383386
"ChatTab",
387+
.product(name: "JSONRPC", package: "JSONRPC"),
384388
.product(name: "CopilotForXcodeKit", package: "CopilotForXcodeKit"),
385389
]
386390
),

Tool/Sources/CodeDiff/CodeDiff.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import Foundation
22
import SuggestionBasic
33

44
public struct CodeDiff {
5+
public init() {}
6+
57
public typealias LineDiff = CollectionDifference<String>
68

79
public struct SnippetDiff: Equatable {

0 commit comments

Comments
 (0)