Files
swift-mirror/test/IDE/complete_import.swift
Alex Hoppen 32eff21977 [IDE] Remove "Begin completions" and "End completions" from test cases
These test lines weren't actually providing any value and were annoying to write. Let's jut remove them.
2023-03-22 09:07:17 -07:00

50 lines
2.5 KiB
Swift

// RUN: %target-swift-ide-test -code-completion -source-filename %s -F %S/Inputs/mock-sdk -code-completion-token=CLANG_IMPORT1 | %FileCheck %s -check-prefix=CLANG_IMPORT1
// RUN: %target-swift-ide-test -code-completion -source-filename %s -F %S/Inputs/mock-sdk -code-completion-token=CLANG_IMPORT2 | %FileCheck %s -check-prefix=CLANG_IMPORT2
// RUN: %target-swift-ide-test -code-completion -source-filename %s -F %S/Inputs/mock-sdk -code-completion-token=CLANG_IMPORT3 | %FileCheck %s -check-prefix=CLANG_IMPORT3
// RUN: %target-swift-ide-test -code-completion -source-filename %s -F %S/Inputs/mock-sdk -code-completion-token=CLANG_IMPORT4 | %FileCheck %s -check-prefix=CLANG_IMPORT4
// RUN: %target-swift-ide-test -code-completion -source-filename %s -F %S/Inputs/mock-sdk -code-completion-token=CLANG_IMPORT5 | %FileCheck %s -check-prefix=CLANG_IMPORT5
// RUN: %target-swift-ide-test -code-completion -source-filename %s -F %S/Inputs/mock-sdk -code-completion-token=CLANG_IMPORT6 | %FileCheck %s -check-prefix=CLANG_IMPORT6
// RUN: %target-swift-ide-test -code-completion -source-filename %s -F %S/Inputs/mock-sdk -code-completion-token=CLANG_IMPORT7 | %FileCheck %s -check-prefix=CLANG_IMPORT7
// RUN: %target-swift-ide-test -code-completion -source-filename %s -F %S/Inputs/mock-sdk -code-completion-token=CLANG_IMPORT8 | %FileCheck %s -check-prefix=CLANG_IMPORT8
// REQUIRES: objc_interop
import #^CLANG_IMPORT1^#
// CLANG_IMPORT1-DAG: Decl[Module]/None: Foo[#Module#]; name=Foo
// CLANG_IMPORT1-DAG: Decl[Module]/None: FooHelper[#Module#]; name=FooHelper
// CLANG_IMPORT1-DAG: Decl[Module]/None: Bar[#Module#]; name=Bar
// CLANG_IMPORT1-NOT: SwiftShims
import Foo
import #^CLANG_IMPORT2^#
// CLANG_IMPORT2-DAG: Decl[Module]/None/NotRecommended: Foo[#Module#]; name=Foo
// CLANG_IMPORT2-DAG: Decl[Module]/None/NotRecommended: FooHelper[#Module#]; name=FooHelper
// CLANG_IMPORT2-DAG: Decl[Module]/None: Bar[#Module#]; name=Bar
// CLANG_IMPORT2-NOT: SwiftShims
import Foo.#^CLANG_IMPORT3^#
// CLANG_IMPORT3: Decl[Module]/None: FooSub[#Module#]; name=FooSub
import Foo.FooSub
import Foo.#^CLANG_IMPORT8^#
// FIXME: This should be marked as not recommended, holding for Swift's submodules support.
// CLANG_IMPORT8: Decl[Module]/None: FooSub[#Module#]; name=FooSub
import Foo#^CLANG_IMPORT4^#
// CLANG_IMPORT4-NOT: Begin completions
import Foo #^CLANG_IMPORT5^#
// CLANG_IMPORT5: Begin completions
import Foo.FooSub#^CLANG_IMPORT6^#
// CLANG_IMPORT6-NOT: Begin completions
import Foo.FooSub #^CLANG_IMPORT7^#
// CLANG_IMPORT7: Begin completions