@@ -114,7 +114,7 @@ class LinkDestinationSummaryTests: XCTestCase {
114
114
XCTAssertEqual ( pageSummary. redirects, nil )
115
115
XCTAssertNil ( pageSummary. usr, " Only symbols have USRs " )
116
116
XCTAssertNil ( pageSummary. plainTextDeclaration, " Only symbols have a plain text declaration " )
117
- XCTAssertNil ( pageSummary. declarationFragments , " Only symbols have declaration fragments " )
117
+ XCTAssertNil ( pageSummary. subheadingDeclarationFragments , " Only symbols have subheading declaration fragments " )
118
118
XCTAssertNil ( pageSummary. navigatorTitle, " Only symbols have navigator titles " )
119
119
XCTAssertNil ( pageSummary. abstract, " There is no text to use as an abstract for the tutorial page " )
120
120
XCTAssertNil ( pageSummary. topicImages, " The tutorial page doesn't have any topic images " )
@@ -134,7 +134,7 @@ class LinkDestinationSummaryTests: XCTestCase {
134
134
] )
135
135
XCTAssertNil ( sectionSummary. usr, " Only symbols have USRs " )
136
136
XCTAssertNil ( sectionSummary. plainTextDeclaration, " Only symbols have a plain text declaration " )
137
- XCTAssertNil ( sectionSummary. declarationFragments , " Only symbols have declaration fragments " )
137
+ XCTAssertNil ( sectionSummary. subheadingDeclarationFragments , " Only symbols have subheading declaration fragments " )
138
138
XCTAssertNil ( sectionSummary. navigatorTitle, " Only symbols have navigator titles " )
139
139
XCTAssertEqual ( sectionSummary. abstract, [
140
140
. text( " Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt " ) ,
@@ -185,7 +185,7 @@ class LinkDestinationSummaryTests: XCTestCase {
185
185
XCTAssertEqual ( summary. platforms, renderNode. metadata. platforms)
186
186
XCTAssertEqual ( summary. usr, " s:5MyKit0A5ClassC " )
187
187
XCTAssertEqual ( summary. plainTextDeclaration, " class MyClass " )
188
- XCTAssertEqual ( summary. declarationFragments , [
188
+ XCTAssertEqual ( summary. subheadingDeclarationFragments , [
189
189
. init( text: " class " , kind: . keyword, identifier: nil ) ,
190
190
. init( text: " " , kind: . text, identifier: nil ) ,
191
191
. init( text: " MyClass " , kind: . identifier, identifier: nil ) ,
@@ -228,7 +228,7 @@ class LinkDestinationSummaryTests: XCTestCase {
228
228
XCTAssertEqual ( summary. platforms, renderNode. metadata. platforms)
229
229
XCTAssertEqual ( summary. usr, " s:5MyKit0A5ProtocolP " )
230
230
XCTAssertEqual ( summary. plainTextDeclaration, " protocol MyProtocol : Hashable " )
231
- XCTAssertEqual ( summary. declarationFragments , [
231
+ XCTAssertEqual ( summary. subheadingDeclarationFragments , [
232
232
. init( text: " protocol " , kind: . keyword, identifier: nil ) ,
233
233
. init( text: " " , kind: . text, identifier: nil ) ,
234
234
. init( text: " MyProtocol " , kind: . identifier, identifier: nil ) ,
@@ -263,7 +263,7 @@ class LinkDestinationSummaryTests: XCTestCase {
263
263
XCTAssertEqual ( summary. platforms, renderNode. metadata. platforms)
264
264
XCTAssertEqual ( summary. usr, " s:5MyKit0A5ClassC10myFunctionyyF " )
265
265
XCTAssertEqual ( summary. plainTextDeclaration, " func myFunction(for name...) " )
266
- XCTAssertEqual ( summary. declarationFragments , [
266
+ XCTAssertEqual ( summary. subheadingDeclarationFragments , [
267
267
. init( text: " func " , kind: . keyword, identifier: nil ) ,
268
268
. init( text: " " , kind: . text, identifier: nil ) ,
269
269
. init( text: " myFunction " , kind: . identifier, identifier: nil ) ,
@@ -300,7 +300,7 @@ class LinkDestinationSummaryTests: XCTestCase {
300
300
XCTAssertEqual ( summary. platforms, renderNode. metadata. platforms)
301
301
XCTAssertEqual ( summary. usr, " s:5MyKit14globalFunction_11consideringy10Foundation4DataV_SitF " )
302
302
XCTAssertEqual ( summary. plainTextDeclaration, " func globalFunction(_: Data, considering: Int) " )
303
- XCTAssertEqual ( summary. declarationFragments , [
303
+ XCTAssertEqual ( summary. subheadingDeclarationFragments , [
304
304
. init( text: " func " , kind: . keyword, identifier: nil ) ,
305
305
. init( text: " " , kind: . text, identifier: nil ) ,
306
306
. init( text: " globalFunction " , kind: . identifier, identifier: nil ) ,
@@ -368,7 +368,7 @@ class LinkDestinationSummaryTests: XCTestCase {
368
368
XCTAssertEqual ( summary. platforms, renderNode. metadata. platforms)
369
369
XCTAssertEqual ( summary. usr, " s:5MyKit0A5ClassC10myFunctionyyF " )
370
370
XCTAssertEqual ( summary. plainTextDeclaration, " func myFunction(for name...) " )
371
- XCTAssertEqual ( summary. declarationFragments , [
371
+ XCTAssertEqual ( summary. subheadingDeclarationFragments , [
372
372
. init( text: " func " , kind: . keyword, identifier: nil ) ,
373
373
. init( text: " " , kind: . text, identifier: nil ) ,
374
374
. init( text: " myFunction " , kind: . identifier, identifier: nil ) ,
@@ -482,7 +482,7 @@ class LinkDestinationSummaryTests: XCTestCase {
482
482
XCTAssertEqual ( summary. platforms, renderNode. metadata. platforms)
483
483
XCTAssertEqual ( summary. usr, " c:objc(cs)Bar " )
484
484
XCTAssertEqual ( summary. plainTextDeclaration, " class Bar " )
485
- XCTAssertEqual ( summary. declarationFragments , [
485
+ XCTAssertEqual ( summary. subheadingDeclarationFragments , [
486
486
. init( text: " class " , kind: . keyword, identifier: nil ) ,
487
487
. init( text: " " , kind: . text, identifier: nil ) ,
488
488
. init( text: " Bar " , kind: . identifier, identifier: nil )
@@ -499,7 +499,7 @@ class LinkDestinationSummaryTests: XCTestCase {
499
499
// Check variant content that is different
500
500
XCTAssertEqual ( variant. language, . objectiveC)
501
501
XCTAssertEqual ( variant. plainTextDeclaration, " @interface Bar : NSObject " )
502
- XCTAssertEqual ( variant. declarationFragments , [
502
+ XCTAssertEqual ( variant. subheadingDeclarationFragments , [
503
503
. init( text: " @interface " , kind: . keyword, identifier: nil ) ,
504
504
. init( text: " " , kind: . text, identifier: nil ) ,
505
505
. init( text: " Bar " , kind: . identifier, identifier: nil ) ,
@@ -549,7 +549,7 @@ class LinkDestinationSummaryTests: XCTestCase {
549
549
XCTAssertEqual ( summary. platforms, renderNode. metadata. platforms)
550
550
XCTAssertEqual ( summary. usr, " c:objc(cs)Bar(cm)myStringFunction:error: " )
551
551
XCTAssertEqual ( summary. plainTextDeclaration, " class func myStringFunction(_ string: String) throws -> String " )
552
- XCTAssertEqual ( summary. declarationFragments , [
552
+ XCTAssertEqual ( summary. subheadingDeclarationFragments , [
553
553
. init( text: " class " , kind: . keyword, identifier: nil ) ,
554
554
. init( text: " " , kind: . text, identifier: nil ) ,
555
555
. init( text: " func " , kind: . keyword, identifier: nil ) ,
@@ -575,7 +575,7 @@ class LinkDestinationSummaryTests: XCTestCase {
575
575
XCTAssertEqual ( variant. language, . objectiveC)
576
576
XCTAssertEqual ( variant. title, " myStringFunction:error: " )
577
577
XCTAssertEqual ( variant. plainTextDeclaration, " + (NSString *) myStringFunction: (NSString *)string error: (NSError **)error; " )
578
- XCTAssertEqual ( variant. declarationFragments , [
578
+ XCTAssertEqual ( variant. subheadingDeclarationFragments , [
579
579
. init( text: " + " , kind: . text, identifier: nil ) ,
580
580
. init( text: " myStringFunction:error: " , kind: . identifier, identifier: nil )
581
581
] )
@@ -713,7 +713,7 @@ class LinkDestinationSummaryTests: XCTestCase {
713
713
XCTAssertEqual ( decoded. title, " ClassName " )
714
714
XCTAssertEqual ( decoded. abstract? . plainText, " A brief explanation of my class. " )
715
715
XCTAssertEqual ( decoded. relativePresentationURL. absoluteString, " documentation/MyKit/ClassName " )
716
- XCTAssertEqual ( decoded. declarationFragments , [
716
+ XCTAssertEqual ( decoded. subheadingDeclarationFragments , [
717
717
. init( text: " class " , kind: . keyword, identifier: nil ) ,
718
718
. init( text: " " , kind: . text, identifier: nil ) ,
719
719
. init( text: " ClassName " , kind: . identifier, identifier: nil ) ,
0 commit comments