diff options
Diffstat (limited to 'crates/ra_ide_api/tests/test/snapshots')
-rw-r--r-- | crates/ra_ide_api/tests/test/snapshots/test__rename_mod.snap | 36 | ||||
-rw-r--r-- | crates/ra_ide_api/tests/test/snapshots/test__rename_mod_in_dir.snap | 36 |
2 files changed, 72 insertions, 0 deletions
diff --git a/crates/ra_ide_api/tests/test/snapshots/test__rename_mod.snap b/crates/ra_ide_api/tests/test/snapshots/test__rename_mod.snap new file mode 100644 index 000000000..54f622b95 --- /dev/null +++ b/crates/ra_ide_api/tests/test/snapshots/test__rename_mod.snap | |||
@@ -0,0 +1,36 @@ | |||
1 | Created: 2019-01-16T14:12:39.379431+00:00 | ||
2 | Creator: [email protected] | ||
3 | Source: crates/ra_ide_api/tests/test/main.rs | ||
4 | |||
5 | Some( | ||
6 | SourceChange { | ||
7 | label: "rename", | ||
8 | source_file_edits: [ | ||
9 | SourceFileEdit { | ||
10 | file_id: FileId( | ||
11 | 1 | ||
12 | ), | ||
13 | edit: TextEdit { | ||
14 | atoms: [ | ||
15 | AtomTextEdit { | ||
16 | delete: [4; 7), | ||
17 | insert: "foo2" | ||
18 | } | ||
19 | ] | ||
20 | } | ||
21 | } | ||
22 | ], | ||
23 | file_system_edits: [ | ||
24 | MoveFile { | ||
25 | src: FileId( | ||
26 | 2 | ||
27 | ), | ||
28 | dst_source_root: SourceRootId( | ||
29 | 0 | ||
30 | ), | ||
31 | dst_path: "bar/foo2.rs" | ||
32 | } | ||
33 | ], | ||
34 | cursor_position: None | ||
35 | } | ||
36 | ) | ||
diff --git a/crates/ra_ide_api/tests/test/snapshots/test__rename_mod_in_dir.snap b/crates/ra_ide_api/tests/test/snapshots/test__rename_mod_in_dir.snap new file mode 100644 index 000000000..aac30e89f --- /dev/null +++ b/crates/ra_ide_api/tests/test/snapshots/test__rename_mod_in_dir.snap | |||
@@ -0,0 +1,36 @@ | |||
1 | Created: 2019-01-16T14:12:39.379358+00:00 | ||
2 | Creator: [email protected] | ||
3 | Source: crates/ra_ide_api/tests/test/main.rs | ||
4 | |||
5 | Some( | ||
6 | SourceChange { | ||
7 | label: "rename", | ||
8 | source_file_edits: [ | ||
9 | SourceFileEdit { | ||
10 | file_id: FileId( | ||
11 | 1 | ||
12 | ), | ||
13 | edit: TextEdit { | ||
14 | atoms: [ | ||
15 | AtomTextEdit { | ||
16 | delete: [4; 7), | ||
17 | insert: "foo2" | ||
18 | } | ||
19 | ] | ||
20 | } | ||
21 | } | ||
22 | ], | ||
23 | file_system_edits: [ | ||
24 | MoveFile { | ||
25 | src: FileId( | ||
26 | 2 | ||
27 | ), | ||
28 | dst_source_root: SourceRootId( | ||
29 | 0 | ||
30 | ), | ||
31 | dst_path: "foo2/mod.rs" | ||
32 | } | ||
33 | ], | ||
34 | cursor_position: None | ||
35 | } | ||
36 | ) | ||