File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 2
2
// 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
3
3
// RUN: %{python} -m json.tool %t/SkipProtocolImplementations.symbols.json %t/SkipProtocolImplementations.formatted.symbols.json
4
4
// RUN: %FileCheck %s --input-file %t/SkipProtocolImplementations.formatted.symbols.json
5
+ // RUN: %FileCheck %s --input-file %t/SkipProtocolImplementations.formatted.symbols.json --check-prefix COUNT
5
6
6
7
// RUN: %empty-directory(%t)
7
8
// RUN: %target-swift-frontend %s -module-name SkipProtocolImplementations -emit-module -emit-module-path %t/SkipProtocolImplementations.swiftmodule -emit-module-doc-path %t/SkipProtocolImplementations.swiftdoc
8
9
// RUN: %target-swift-symbolgraph-extract -module-name SkipProtocolImplementations -I %t -skip-protocol-implementations -pretty-print -output-dir %t
9
10
// RUN: %FileCheck %s --input-file %t/SkipProtocolImplementations.symbols.json
11
+ // RUN: %FileCheck %s --input-file %t/SkipProtocolImplementations.symbols.json --check-prefix COUNT
10
12
11
13
// make sure that using `-skip-protocol-implementations` removes the functions from `SomeProtocol` on `SomeStruct`
12
14
// CHECK-NOT: s:27SkipProtocolImplementations04SomeB0PAAE9bonusFuncyyF::SYNTHESIZED::s:27SkipProtocolImplementations10SomeStructV
23
25
// CHECK-DAG: conformsTo
24
26
25
27
// SomeStruct.otherFunc() should be the only one with sourceOrigin information
26
- // CHECK -COUNT-1: sourceOrigin
28
+ // COUNT -COUNT-1: sourceOrigin
27
29
28
30
public protocol SomeProtocol {
29
31
/// Base docs
You can’t perform that action at this time.
0 commit comments