From cc4f9db08642f006e7f8ff83233729aa39a6d353 Mon Sep 17 00:00:00 2001 From: Allan Brondum Rasmussen Date: Sat, 3 Dec 2022 00:53:56 +0100 Subject: [PATCH] remove unneeded test --- crates/ide/src/call_hierarchy.rs | 123 +------------------------------ 1 file changed, 2 insertions(+), 121 deletions(-) diff --git a/crates/ide/src/call_hierarchy.rs b/crates/ide/src/call_hierarchy.rs index 1506e44a71..90723dcdbb 100644 --- a/crates/ide/src/call_hierarchy.rs +++ b/crates/ide/src/call_hierarchy.rs @@ -460,7 +460,7 @@ fn caller$0() { } #[test] - fn test_trait_method_call_hierarchy_on_def() { + fn test_trait_method_call_hierarchy() { check_hierarchy( r#" trait T1 { @@ -482,124 +482,5 @@ fn caller() { expect![[]], ); } - - #[test] - fn test_trait_method_call_hierarchy_on_impl() { - check_hierarchy( - r#" -trait T1 { - fn callee(); -} - -struct S1; - -impl T1 for S1 { - fn call$0ee() {} -} - -fn caller() { - S1::callee(); -} -"#, - expect![["callee Function FileId(0) 64..78 67..73"]], - expect![["caller Function FileId(0) 82..115 85..91 : [104..110]"]], - expect![[]], - ); - } - - #[test] - fn test_trait_method_call_hierarchy_on_ref() { - check_hierarchy( - r#" -trait T1 { - fn callee(); -} - -struct S1; - -impl T1 for S1 { - fn callee() {} -} - -fn caller() { - S1::call$0ee(); -} -"#, - expect![["callee Function FileId(0) 64..78 67..73"]], - expect![["caller Function FileId(0) 82..115 85..91 : [104..110]"]], - expect![[]], - ); - } - - #[test] - fn test_trait_method_generic_call_hierarchy_on_def() { - check_hierarchy( - r#" -trait T1 { - fn call$0ee(); -} - -struct S1; - -impl T1 for S1 { - fn callee() {} -} - -fn caller() { - T::callee(); -} -"#, - expect![["callee Function FileId(0) 15..27 18..24"]], - expect![["caller Function FileId(0) 82..121 85..91 : [110..116]"]], - expect![[]], - ); - } - - #[test] - fn test_trait_method_generic_call_hierarchy_on_impl() { - check_hierarchy( - r#" -trait T1 { - fn callee(); -} - -struct S1; - -impl T1 for S1 { - fn call$0ee() {} -} - -fn caller() { - T::callee(); -} -"#, - expect![["callee Function FileId(0) 64..78 67..73"]], - expect![["caller Function FileId(0) 82..121 85..91 : [110..116]"]], - expect![[]], - ); - } - - #[test] - fn test_trait_method_generic_call_hierarchy_on_ref() { - check_hierarchy( - r#" -trait T1 { - fn callee(); -} - -struct S1; - -impl T1 for S1 { - fn callee() {} -} - -fn caller() { - T::call$0ee(); -} -"#, - expect![["callee Function FileId(0) 15..27 18..24"]], - expect![["caller Function FileId(0) 82..121 85..91 : [110..116]"]], - expect![[]], - ); - } + }