about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAllan Brondum Rasmussen <allanbrondum@gmail.com>2022-12-03 00:53:56 +0100
committerAllan Brondum Rasmussen <allanbrondum@gmail.com>2022-12-03 00:53:56 +0100
commitcc4f9db08642f006e7f8ff83233729aa39a6d353 (patch)
treee431338aaad57eead7e6b343f104eadd67b1fd5b
parentbce3b6370036ba5ab0b0e29b3fe94b8f62020c00 (diff)
downloadrust-cc4f9db08642f006e7f8ff83233729aa39a6d353.tar.gz
rust-cc4f9db08642f006e7f8ff83233729aa39a6d353.zip
remove unneeded test
-rw-r--r--crates/ide/src/call_hierarchy.rs123
1 files changed, 2 insertions, 121 deletions
diff --git a/crates/ide/src/call_hierarchy.rs b/crates/ide/src/call_hierarchy.rs
index 1506e44a718..90723dcdbb7 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: T1>() {
-    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: T1>() {
-    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: T1>() {
-    T::call$0ee();
-}
-"#,
-            expect![["callee Function FileId(0) 15..27 18..24"]],
-            expect![["caller Function FileId(0) 82..121 85..91 : [110..116]"]],
-            expect![[]],
-        );
-    }
+    
 }