859: remove ignored macro tests r=matklad a=matklad



Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
bors[bot] 2019-02-19 17:07:26 +00:00
commit 5b617e3bf8
4 changed files with 3 additions and 50 deletions

View file

@ -401,36 +401,6 @@ fn name_res_works_for_broken_modules() {
);
}
#[test]
#[ignore]
fn item_map_contains_items_from_expansions() {
let (item_map, module_id) = item_map(
"
//- /lib.rs
mod foo;
use crate::foo::bar::Baz;
<|>
//- /foo/mod.rs
pub mod bar;
//- /foo/bar.rs
salsa::query_group! {
trait Baz {}
}
",
);
check_module_item_map(
&item_map,
module_id,
"
Baz: t
foo: t
",
);
}
#[test]
fn item_map_using_self() {
let (item_map, module_id) = item_map(

View file

@ -18,7 +18,7 @@ impl MockAnalysis {
}
/// Creates `MockAnalysis` using a fixture data in the following format:
///
/// ```rust,ignore
/// ```not_rust
/// //- /main.rs
/// mod foo;
/// fn main() {}

View file

@ -4,7 +4,7 @@ use ra_ide_api::{
AnalysisChange, CrateGraph, Edition::Edition2018, Query, NavigationTarget,
ReferenceSearchResult,
};
use ra_syntax::{TextRange, SmolStr};
use ra_syntax::SmolStr;
#[test]
fn test_unresolved_module_diagnostic() {
@ -138,20 +138,3 @@ mod foo {
assert_eq!(s.name(), "FooInner");
assert_eq!(s.container_name(), Some(&SmolStr::new("foo")));
}
#[test]
#[ignore]
fn world_symbols_include_stuff_from_macros() {
let (analysis, _) = single_file(
"
salsa::query_group! {
pub trait HirDatabase: SyntaxDatabase {}
}
",
);
let mut symbols = analysis.symbol_search(Query::new("Hir".into())).unwrap();
let s = symbols.pop().unwrap();
assert_eq!(s.name(), "HirDatabase");
assert_eq!(s.full_range(), TextRange::from_to(33.into(), 44.into()));
}

View file

@ -115,7 +115,7 @@ pub struct FixtureEntry {
/// Parses text which looks like this:
///
/// ```rust,ignore
/// ```not_rust
/// //- some meta
/// line 1
/// line 2