Skip to content

Commit 0ab9348

Browse files
count sourceOrigin outside the linear check to make it consistent
rdar://106084537
1 parent 54b35e8 commit 0ab9348

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/SymbolGraph/Symbols/SkipProtocolImplementations.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
// RUN: %target-swift-frontend %s -module-name SkipProtocolImplementations -emit-module -emit-module-path %t/SkipProtocolImplementations.swiftmodule -emit-symbol-graph -emit-symbol-graph-dir %t/ -skip-protocol-implementations
33
// RUN: %{python} -m json.tool %t/SkipProtocolImplementations.symbols.json %t/SkipProtocolImplementations.formatted.symbols.json
44
// RUN: %FileCheck %s --input-file %t/SkipProtocolImplementations.formatted.symbols.json
5+
// RUN: %FileCheck %s --input-file %t/SkipProtocolImplementations.formatted.symbols.json --check-prefix COUNT
56

67
// RUN: %empty-directory(%t)
78
// RUN: %target-swift-frontend %s -module-name SkipProtocolImplementations -emit-module -emit-module-path %t/SkipProtocolImplementations.swiftmodule -emit-module-doc-path %t/SkipProtocolImplementations.swiftdoc
89
// RUN: %target-swift-symbolgraph-extract -module-name SkipProtocolImplementations -I %t -skip-protocol-implementations -pretty-print -output-dir %t
910
// RUN: %FileCheck %s --input-file %t/SkipProtocolImplementations.symbols.json
11+
// RUN: %FileCheck %s --input-file %t/SkipProtocolImplementations.symbols.json --check-prefix COUNT
1012

1113
// make sure that using `-skip-protocol-implementations` removes the functions from `SomeProtocol` on `SomeStruct`
1214
// CHECK-NOT: s:27SkipProtocolImplementations04SomeB0PAAE9bonusFuncyyF::SYNTHESIZED::s:27SkipProtocolImplementations10SomeStructV
@@ -23,7 +25,7 @@
2325
// CHECK-DAG: conformsTo
2426

2527
// SomeStruct.otherFunc() should be the only one with sourceOrigin information
26-
// CHECK-COUNT-1: sourceOrigin
28+
// COUNT-COUNT-1: sourceOrigin
2729

2830
public protocol SomeProtocol {
2931
/// Base docs

0 commit comments

Comments
 (0)