aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/parent_module.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ide/src/parent_module.rs')
-rw-r--r--crates/ide/src/parent_module.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/crates/ide/src/parent_module.rs b/crates/ide/src/parent_module.rs
index 253454476..ef94acfec 100644
--- a/crates/ide/src/parent_module.rs
+++ b/crates/ide/src/parent_module.rs
@@ -65,11 +65,11 @@ pub(crate) fn crate_for(db: &RootDatabase, file_id: FileId) -> Vec<CrateId> {
65mod tests { 65mod tests {
66 use test_utils::mark; 66 use test_utils::mark;
67 67
68 use crate::mock_analysis::{analysis_and_position, single_file}; 68 use crate::fixture::{self};
69 69
70 #[test] 70 #[test]
71 fn test_resolve_parent_module() { 71 fn test_resolve_parent_module() {
72 let (analysis, pos) = analysis_and_position( 72 let (analysis, pos) = fixture::position(
73 " 73 "
74 //- /lib.rs 74 //- /lib.rs
75 mod foo; 75 mod foo;
@@ -84,7 +84,7 @@ mod tests {
84 #[test] 84 #[test]
85 fn test_resolve_parent_module_on_module_decl() { 85 fn test_resolve_parent_module_on_module_decl() {
86 mark::check!(test_resolve_parent_module_on_module_decl); 86 mark::check!(test_resolve_parent_module_on_module_decl);
87 let (analysis, pos) = analysis_and_position( 87 let (analysis, pos) = fixture::position(
88 " 88 "
89 //- /lib.rs 89 //- /lib.rs
90 mod foo; 90 mod foo;
@@ -102,7 +102,7 @@ mod tests {
102 102
103 #[test] 103 #[test]
104 fn test_resolve_parent_module_for_inline() { 104 fn test_resolve_parent_module_for_inline() {
105 let (analysis, pos) = analysis_and_position( 105 let (analysis, pos) = fixture::position(
106 " 106 "
107 //- /lib.rs 107 //- /lib.rs
108 mod foo { 108 mod foo {
@@ -118,7 +118,7 @@ mod tests {
118 118
119 #[test] 119 #[test]
120 fn test_resolve_crate_root() { 120 fn test_resolve_crate_root() {
121 let (analysis, file_id) = single_file( 121 let (analysis, file_id) = fixture::file(
122 r#" 122 r#"
123//- /main.rs 123//- /main.rs
124mod foo; 124mod foo;