From 3f4ad44082abe7256825f6fc692c1455a1eb28bb Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 14 Jun 2021 22:55:05 +0300 Subject: internal: document that we don't #[ignore] tests --- crates/ide_assists/src/handlers/fix_visibility.rs | 32 +++++++++++------------ 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'crates/ide_assists/src') diff --git a/crates/ide_assists/src/handlers/fix_visibility.rs b/crates/ide_assists/src/handlers/fix_visibility.rs index 9b432e92f..2f2b605fc 100644 --- a/crates/ide_assists/src/handlers/fix_visibility.rs +++ b/crates/ide_assists/src/handlers/fix_visibility.rs @@ -583,25 +583,25 @@ pub struct Foo { pub(crate) bar: () } } #[test] - #[ignore] - // FIXME handle reexports properly fn fix_visibility_of_reexport() { + // FIXME: broken test, this should fix visibility of the re-export + // rather than the struct. check_assist( fix_visibility, - r" - mod foo { - use bar::Baz; - mod bar { pub(super) struct Baz; } - } - foo::Baz$0 - ", - r" - mod foo { - $0pub(crate) use bar::Baz; - mod bar { pub(super) struct Baz; } - } - foo::Baz - ", + r#" +mod foo { + use bar::Baz; + mod bar { pub(super) struct Baz; } +} +foo::Baz$0 +"#, + r#" +mod foo { + use bar::Baz; + mod bar { $0pub(crate) struct Baz; } +} +foo::Baz +"#, ) } } -- cgit v1.2.3