@@ -3040,51 +3040,6 @@ let expected = """
3040
3040
}
3041
3041
}
3042
3042
3043
- func testMatchesDocumentationExtensionsRelativeToModule( ) throws {
3044
- try XCTSkipUnless ( LinkResolutionMigrationConfiguration . shouldUseHierarchyBasedLinkResolver)
3045
-
3046
- let ( _, bundle, context) = try testBundleAndContext ( copying: " MixedLanguageFrameworkWithLanguageRefinements " ) { url in
3047
- // Top level symbols, omitting the module name
3048
- try """
3049
- # ``MyStruct/myStructProperty``
3050
-
3051
- @Metadata {
3052
- @DocumentationExtension(mergeBehavior: override)
3053
- }
3054
-
3055
- my struct property
3056
- """ . write ( to: url. appendingPathComponent ( " struct-property.md " ) , atomically: true , encoding: . utf8)
3057
-
3058
- try """
3059
- # ``MyTypeAlias``
3060
-
3061
- @Metadata {
3062
- @DocumentationExtension(mergeBehavior: override)
3063
- }
3064
-
3065
- my type alias
3066
- """ . write ( to: url. appendingPathComponent ( " alias.md " ) , atomically: true , encoding: . utf8)
3067
- }
3068
-
3069
- do {
3070
- // The resolved reference needs more disambiguation than the documentation extension link did.
3071
- let reference = ResolvedTopicReference ( bundleIdentifier: bundle. identifier, path: " /documentation/MixedFramework/MyStruct/myStructProperty " , sourceLanguage: . swift)
3072
-
3073
- let node = try context. entity ( with: reference)
3074
- let symbol = try XCTUnwrap ( node. semantic as? Symbol )
3075
- XCTAssertEqual ( symbol. abstract? . plainText, " my struct property " , " The abstract should be from the overriding documentation extension. " )
3076
- }
3077
-
3078
- do {
3079
- // The resolved reference needs more disambiguation than the documentation extension link did.
3080
- let reference = ResolvedTopicReference ( bundleIdentifier: bundle. identifier, path: " /documentation/MixedFramework/MyTypeAlias " , sourceLanguage: . swift)
3081
-
3082
- let node = try context. entity ( with: reference)
3083
- let symbol = try XCTUnwrap ( node. semantic as? Symbol )
3084
- XCTAssertEqual ( symbol. abstract? . plainText, " my type alias " , " The abstract should be from the overriding documentation extension. " )
3085
- }
3086
- }
3087
-
3088
3043
func testMultipleDocumentationExtensionMatchDiagnostic( ) throws {
3089
3044
try XCTSkipUnless ( LinkResolutionMigrationConfiguration . shouldUseHierarchyBasedLinkResolver)
3090
3045
0 commit comments