mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The code goes into its own sub-tree under 'tools' but tests go under 'test', so that running 'check-swift' will also run all the SourceKit tests. SourceKit is disabled on non-darwin platforms.
16 lines
602 B
Swift
16 lines
602 B
Swift
import Foo
|
|
|
|
// RUN: %sourcekitd-test -req=complete.cache.ondisk -cache-path=%t.ccp == \
|
|
// RUN: -req=complete.open -pos=2:1 -req-opts=hidelowpriority=0 %s -- %s -F %S/../Inputs/libIDE-mock-sdk > %t.completions1
|
|
|
|
// Make sure we built the cache.
|
|
// RUN: ls %t.ccp | grep "Foo.*completions"
|
|
|
|
// RUN: %sourcekitd-test -req=complete.cache.ondisk -cache-path=%t.ccp == \
|
|
// RUN: -req=complete -pos=2:1 %s -- %s -F %S/../Inputs/libIDE-mock-sdk > %t.completions2
|
|
|
|
// Sanity check the results
|
|
// RUN: FileCheck %s < %t.completions1
|
|
// RUN: FileCheck %s < %t.completions2
|
|
// CHECK: key.name: "FooStruct
|