diff options
author | Aleksey Kladov <[email protected]> | 2020-10-02 16:34:31 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-10-02 16:49:44 +0100 |
commit | b06259673f9b535a63c0cabf4eeb935ff73d86d0 (patch) | |
tree | a1d9c304711806c393163547fe6da69289aa9f16 /crates/ide/src/parent_module.rs | |
parent | 09348b247465864c6462a39055803bcbb0156cfe (diff) |
rename mock_analysis -> fixture
Diffstat (limited to 'crates/ide/src/parent_module.rs')
-rw-r--r-- | crates/ide/src/parent_module.rs | 10 |
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> { | |||
65 | mod tests { | 65 | mod 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 |
124 | mod foo; | 124 | mod foo; |