Skip to content

Commit 1d87551

Browse files
committed
Remove broken customOperator test
The test's source snippet only declared struct Box with a custom operator, but asserted on extractedTypes["AlwaysHere"] and ["OnlyWhenImportable"], which were never declared in that source - copy-paste leftover from the neighboring canImport test.
1 parent 0920ddd commit 1d87551

1 file changed

Lines changed: 0 additions & 25 deletions

File tree

‎Tests/SwiftExtractTests/AnalysisResultTests.swift‎

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -372,31 +372,6 @@ struct AnalysisResultSuite {
372372
#expect(result.extractedTypes["OnlyWhenImportable"] == nil)
373373
}
374374

375-
@Test func customOperator() throws {
376-
var config = DefaultSwiftExtractConfiguration()
377-
config.availableImportModules = ["MadeUpModule"]
378-
379-
let result = try analyze(
380-
sources: [
381-
(
382-
"/fake/Source.swift",
383-
"""
384-
struct Box {
385-
static prefix func +++ (other: inout Box) -> Box {
386-
return other
387-
}
388-
}
389-
"""
390-
)
391-
],
392-
moduleName: "Aquarium",
393-
config: config
394-
)
395-
396-
#expect(result.extractedTypes["AlwaysHere"] != nil)
397-
#expect(result.extractedTypes["OnlyWhenImportable"] != nil)
398-
}
399-
400375
/// Adding the module to `availableImportModules` activates the
401376
/// `#if canImport(<module>)` clause so its declarations are extracted.
402377
@Test func availableImportModulesActivatesCanImportClause() throws {

0 commit comments

Comments
 (0)