We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f303f4 commit 1bd21e9Copy full SHA for 1bd21e9
crates/ide/src/references.rs
@@ -307,6 +307,30 @@ mod tests {
307
308
use crate::{fixture, SearchScope};
309
310
+ #[test]
311
+ fn exclude_tests() {
312
+ check(
313
+ r#"
314
+fn test_func() {}
315
+
316
+fn func() {
317
+ test_func$0();
318
+}
319
320
+#[test]
321
+fn test() {
322
+ test_func();
323
324
+"#,
325
+ expect![[r#"
326
+ test_func Function FileId(0) 0..17 3..12
327
328
+ FileId(0) 35..44
329
+ FileId(0) 75..84 Test
330
+ "#]],
331
+ );
332
+ }
333
334
#[test]
335
fn test_struct_literal_after_space() {
336
check(
0 commit comments