From 4ca5d4c353dc83ce758b286c0d1c6a44fd51fd81 Mon Sep 17 00:00:00 2001 From: kjeremy Date: Tue, 29 Oct 2019 15:25:31 -0400 Subject: [PATCH] Add missing test for label --- crates/ra_ide_api/src/call_info.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/ra_ide_api/src/call_info.rs b/crates/ra_ide_api/src/call_info.rs index 729f4c2fff..175af3fd92 100644 --- a/crates/ra_ide_api/src/call_info.rs +++ b/crates/ra_ide_api/src/call_info.rs @@ -448,6 +448,7 @@ pub fn foo(mut r: WriteHandler<()>) { "#, ); + assert_eq!(info.label(), "fn finished(&mut self, ctx: &mut Self::Context)".to_string()); assert_eq!(info.parameters(), ["&mut self", "ctx: &mut Self::Context"]); assert_eq!(info.active_parameter, Some(1)); assert_eq!(