@@ -28,9 +28,9 @@ class DocumentationCuratorTests: XCTestCase {
28
28
}
29
29
30
30
func testCrawl( ) async throws {
31
- let ( bundle , context) = try await testBundleAndContext ( named: " LegacyBundle_DoNotUseInNewTests " )
31
+ let ( _ , context) = try await testBundleAndContext ( named: " LegacyBundle_DoNotUseInNewTests " )
32
32
33
- var crawler = DocumentationCurator ( in: context, bundle : bundle )
33
+ var crawler = DocumentationCurator ( in: context)
34
34
let mykit = try context. entity ( with: ResolvedTopicReference ( bundleID: " org.swift.docc.example " , path: " /documentation/MyKit " , sourceLanguage: . swift) )
35
35
36
36
var symbolsWithCustomCuration = [ ResolvedTopicReference] ( )
@@ -75,7 +75,7 @@ class DocumentationCuratorTests: XCTestCase {
75
75
}
76
76
77
77
func testCrawlDiagnostics( ) async throws {
78
- let ( tempCatalogURL, bundle , context) = try await testBundleAndContext ( copying: " LegacyBundle_DoNotUseInNewTests " ) { url in
78
+ let ( tempCatalogURL, _ , context) = try await testBundleAndContext ( copying: " LegacyBundle_DoNotUseInNewTests " ) { url in
79
79
let extensionFile = url. appendingPathComponent ( " documentation/myfunction.md " )
80
80
81
81
try """
@@ -97,7 +97,7 @@ class DocumentationCuratorTests: XCTestCase {
97
97
}
98
98
let extensionFile = tempCatalogURL. appendingPathComponent ( " documentation/myfunction.md " )
99
99
100
- var crawler = DocumentationCurator ( in: context, bundle : bundle )
100
+ var crawler = DocumentationCurator ( in: context)
101
101
let mykit = try context. entity ( with: ResolvedTopicReference ( bundleID: " org.swift.docc.example " , path: " /documentation/MyKit " , sourceLanguage: . swift) )
102
102
103
103
XCTAssertNoThrow ( try crawler. crawlChildren ( of: mykit. reference, prepareForCuration: { _ in } , relateNodes: { _, _ in } ) )
@@ -286,7 +286,7 @@ class DocumentationCuratorTests: XCTestCase {
286
286
}
287
287
288
288
func testModuleUnderTechnologyRoot( ) async throws {
289
- let ( _, bundle , context) = try await testBundleAndContext ( copying: " SourceLocations " ) { url in
289
+ let ( _, _ , context) = try await testBundleAndContext ( copying: " SourceLocations " ) { url in
290
290
try """
291
291
# Root curating a module
292
292
@@ -303,7 +303,7 @@ class DocumentationCuratorTests: XCTestCase {
303
303
""" . write ( to: url. appendingPathComponent ( " Root.md " ) , atomically: true , encoding: . utf8)
304
304
}
305
305
306
- let crawler = DocumentationCurator ( in: context, bundle : bundle )
306
+ let crawler = DocumentationCurator ( in: context)
307
307
XCTAssert ( context. problems. isEmpty, " Expected no problems. Found: \( context. problems. map ( \. diagnostic. summary) ) " )
308
308
309
309
guard let moduleNode = context. documentationCache [ " SourceLocations " ] ,
@@ -459,9 +459,9 @@ class DocumentationCuratorTests: XCTestCase {
459
459
}
460
460
461
461
func testSymbolLinkResolving( ) async throws {
462
- let ( bundle , context) = try await testBundleAndContext ( named: " LegacyBundle_DoNotUseInNewTests " )
462
+ let ( _ , context) = try await testBundleAndContext ( named: " LegacyBundle_DoNotUseInNewTests " )
463
463
464
- let crawler = DocumentationCurator ( in: context, bundle : bundle )
464
+ let crawler = DocumentationCurator ( in: context)
465
465
466
466
// Resolve top-level symbol in module parent
467
467
do {
@@ -512,9 +512,9 @@ class DocumentationCuratorTests: XCTestCase {
512
512
}
513
513
514
514
func testLinkResolving( ) async throws {
515
- let ( sourceRoot, bundle , context) = try await testBundleAndContext ( named: " LegacyBundle_DoNotUseInNewTests " )
515
+ let ( sourceRoot, _ , context) = try await testBundleAndContext ( named: " LegacyBundle_DoNotUseInNewTests " )
516
516
517
- var crawler = DocumentationCurator ( in: context, bundle : bundle )
517
+ var crawler = DocumentationCurator ( in: context)
518
518
519
519
// Resolve and curate an article in module root (absolute link)
520
520
do {
@@ -567,7 +567,7 @@ class DocumentationCuratorTests: XCTestCase {
567
567
}
568
568
569
569
func testGroupLinkValidation( ) async throws {
570
- let ( _, bundle , context) = try await testBundleAndContext ( copying: " LegacyBundle_DoNotUseInNewTests " , excludingPaths: [ ] ) { root in
570
+ let ( _, _ , context) = try await testBundleAndContext ( copying: " LegacyBundle_DoNotUseInNewTests " , excludingPaths: [ ] ) { root in
571
571
// Create a sidecar with invalid group links
572
572
try ! """
573
573
# ``SideKit``
@@ -607,7 +607,7 @@ class DocumentationCuratorTests: XCTestCase {
607
607
""" . write ( to: root. appendingPathComponent ( " documentation " ) . appendingPathComponent ( " api-collection.md " ) , atomically: true , encoding: . utf8)
608
608
}
609
609
610
- var crawler = DocumentationCurator ( in: context, bundle : bundle )
610
+ var crawler = DocumentationCurator ( in: context)
611
611
let reference = ResolvedTopicReference ( bundleID: " org.swift.docc.example " , path: " /documentation/SideKit " , sourceLanguage: . swift)
612
612
613
613
try crawler. crawlChildren ( of: reference, prepareForCuration: { _ in } ) { ( _, _) in }
0 commit comments