1 //! Completion tests for item specifics overall.
3 //! Except for use items which are tested in [super::use_tree] and mod declarations with are tested
4 //! in [crate::completions::mod_].
5 use expect_test::{expect, Expect};
7 use crate::tests::{completion_list, BASE_ITEMS_FIXTURE};
9 fn check(ra_fixture: &str, expect: Expect) {
10 let actual = completion_list(&format!("{}{}", BASE_ITEMS_FIXTURE, ra_fixture));
11 expect.assert_eq(&actual)
15 fn target_type_or_trait_in_impl_block() {
22 ma makro!(…) macro_rules! makro
38 fn target_type_in_trait_impl_block() {
45 ma makro!(…) macro_rules! makro
61 fn after_trait_name_in_trait_def() {
71 fn after_target_name_in_impl() {
79 // FIXME: This should not emit `kw for`
81 r"impl Trait for Type $0",
90 fn after_struct_name() {
91 // FIXME: This should emit `kw where` only
117 // FIXME: This should emit `kw where` only
142 fn before_record_field() {