From 164ba6092c41fe9b4ecd5bedb5d3d6d849c51639 Mon Sep 17 00:00:00 2001 From: Phil Ellison Date: Sun, 28 Jul 2019 10:42:31 +0100 Subject: Remove unused highlights_code_inside_macro snapshot, inline rename_mod_in_dir snapshot --- .../tests__highlights_code_inside_macros.snap | 44 ---------------------- .../src/snapshots/tests__rename_mod_in_dir.snap | 38 ------------------- 2 files changed, 82 deletions(-) delete mode 100644 crates/ra_ide_api/src/snapshots/tests__highlights_code_inside_macros.snap delete mode 100644 crates/ra_ide_api/src/snapshots/tests__rename_mod_in_dir.snap (limited to 'crates/ra_ide_api/src/snapshots') diff --git a/crates/ra_ide_api/src/snapshots/tests__highlights_code_inside_macros.snap b/crates/ra_ide_api/src/snapshots/tests__highlights_code_inside_macros.snap deleted file mode 100644 index ae8923e75..000000000 --- a/crates/ra_ide_api/src/snapshots/tests__highlights_code_inside_macros.snap +++ /dev/null @@ -1,44 +0,0 @@ ---- -created: "2019-02-01T07:46:59.130146403+00:00" -creator: insta@0.5.3 -expression: "&highlights" -source: crates/ra_ide_api/src/syntax_highlighting.rs ---- -[ - HighlightedRange { - range: [13; 15), - tag: "keyword" - }, - HighlightedRange { - range: [16; 20), - tag: "function" - }, - HighlightedRange { - range: [41; 45), - tag: "macro" - }, - HighlightedRange { - range: [48; 51), - tag: "keyword" - }, - HighlightedRange { - range: [56; 58), - tag: "literal" - }, - HighlightedRange { - range: [48; 51), - tag: "keyword" - }, - HighlightedRange { - range: [52; 53), - tag: "function" - }, - HighlightedRange { - range: [56; 58), - tag: "literal" - }, - HighlightedRange { - range: [60; 61), - tag: "text" - } -] diff --git a/crates/ra_ide_api/src/snapshots/tests__rename_mod_in_dir.snap b/crates/ra_ide_api/src/snapshots/tests__rename_mod_in_dir.snap deleted file mode 100644 index aaff9b4b5..000000000 --- a/crates/ra_ide_api/src/snapshots/tests__rename_mod_in_dir.snap +++ /dev/null @@ -1,38 +0,0 @@ ---- -created: "2019-05-23T22:23:35.213830371Z" -creator: insta@0.8.1 -source: crates/ra_ide_api/src/references.rs -expression: "&source_change" ---- -Some( - SourceChange { - label: "rename", - source_file_edits: [ - SourceFileEdit { - file_id: FileId( - 1, - ), - edit: TextEdit { - atoms: [ - AtomTextEdit { - delete: [4; 7), - insert: "foo2", - }, - ], - }, - }, - ], - file_system_edits: [ - MoveFile { - src: FileId( - 2, - ), - dst_source_root: SourceRootId( - 0, - ), - dst_path: "foo2/mod.rs", - }, - ], - cursor_position: None, - }, -) -- cgit v1.2.3 From 8f71614bdd1e3f07019b1629235a68417adf7e27 Mon Sep 17 00:00:00 2001 From: Phil Ellison Date: Sun, 28 Jul 2019 11:52:17 +0100 Subject: Inline snapshots for all tests in references.rs --- .../src/snapshots/tests__rename_mod.snap | 38 ---------------------- 1 file changed, 38 deletions(-) delete mode 100644 crates/ra_ide_api/src/snapshots/tests__rename_mod.snap (limited to 'crates/ra_ide_api/src/snapshots') diff --git a/crates/ra_ide_api/src/snapshots/tests__rename_mod.snap b/crates/ra_ide_api/src/snapshots/tests__rename_mod.snap deleted file mode 100644 index 431de5c55..000000000 --- a/crates/ra_ide_api/src/snapshots/tests__rename_mod.snap +++ /dev/null @@ -1,38 +0,0 @@ ---- -created: "2019-05-23T22:23:35.215905447Z" -creator: insta@0.8.1 -source: crates/ra_ide_api/src/references.rs -expression: "&source_change" ---- -Some( - SourceChange { - label: "rename", - source_file_edits: [ - SourceFileEdit { - file_id: FileId( - 2, - ), - edit: TextEdit { - atoms: [ - AtomTextEdit { - delete: [4; 7), - insert: "foo2", - }, - ], - }, - }, - ], - file_system_edits: [ - MoveFile { - src: FileId( - 3, - ), - dst_source_root: SourceRootId( - 0, - ), - dst_path: "bar/foo2.rs", - }, - ], - cursor_position: None, - }, -) -- cgit v1.2.3 From a72331f223a120101f6edac51962ac7b2aa48cde Mon Sep 17 00:00:00 2001 From: Phil Ellison Date: Sun, 28 Jul 2019 11:57:56 +0100 Subject: Inline snapshots for all tests in runnables.rs --- .../ra_ide_api/src/snapshots/tests__runnables.snap | 24 ---------------------- .../src/snapshots/tests__runnables_module.snap | 20 ------------------ .../tests__runnables_multiple_depth_module.snap | 20 ------------------ .../tests__runnables_one_depth_layer_module.snap | 20 ------------------ 4 files changed, 84 deletions(-) delete mode 100644 crates/ra_ide_api/src/snapshots/tests__runnables.snap delete mode 100644 crates/ra_ide_api/src/snapshots/tests__runnables_module.snap delete mode 100644 crates/ra_ide_api/src/snapshots/tests__runnables_multiple_depth_module.snap delete mode 100644 crates/ra_ide_api/src/snapshots/tests__runnables_one_depth_layer_module.snap (limited to 'crates/ra_ide_api/src/snapshots') diff --git a/crates/ra_ide_api/src/snapshots/tests__runnables.snap b/crates/ra_ide_api/src/snapshots/tests__runnables.snap deleted file mode 100644 index de2fadd7f..000000000 --- a/crates/ra_ide_api/src/snapshots/tests__runnables.snap +++ /dev/null @@ -1,24 +0,0 @@ ---- -created: "2019-05-23T22:23:35.217100106Z" -creator: insta@0.8.1 -source: crates/ra_ide_api/src/runnables.rs -expression: "&runnables" ---- -[ - Runnable { - range: [1; 21), - kind: Bin, - }, - Runnable { - range: [22; 46), - kind: Test { - name: "test_foo", - }, - }, - Runnable { - range: [47; 81), - kind: Test { - name: "test_foo", - }, - }, -] diff --git a/crates/ra_ide_api/src/snapshots/tests__runnables_module.snap b/crates/ra_ide_api/src/snapshots/tests__runnables_module.snap deleted file mode 100644 index 23993a97f..000000000 --- a/crates/ra_ide_api/src/snapshots/tests__runnables_module.snap +++ /dev/null @@ -1,20 +0,0 @@ ---- -created: "2019-05-23T22:23:35.219258850Z" -creator: insta@0.8.1 -source: crates/ra_ide_api/src/runnables.rs -expression: "&runnables" ---- -[ - Runnable { - range: [1; 59), - kind: TestMod { - path: "test_mod", - }, - }, - Runnable { - range: [28; 57), - kind: Test { - name: "test_foo1", - }, - }, -] diff --git a/crates/ra_ide_api/src/snapshots/tests__runnables_multiple_depth_module.snap b/crates/ra_ide_api/src/snapshots/tests__runnables_multiple_depth_module.snap deleted file mode 100644 index c516a61df..000000000 --- a/crates/ra_ide_api/src/snapshots/tests__runnables_multiple_depth_module.snap +++ /dev/null @@ -1,20 +0,0 @@ ---- -created: "2019-05-23T22:23:35.219671663Z" -creator: insta@0.8.1 -source: crates/ra_ide_api/src/runnables.rs -expression: "&runnables" ---- -[ - Runnable { - range: [41; 115), - kind: TestMod { - path: "foo::bar::test_mod", - }, - }, - Runnable { - range: [68; 105), - kind: Test { - name: "test_foo1", - }, - }, -] diff --git a/crates/ra_ide_api/src/snapshots/tests__runnables_one_depth_layer_module.snap b/crates/ra_ide_api/src/snapshots/tests__runnables_one_depth_layer_module.snap deleted file mode 100644 index b02e6707e..000000000 --- a/crates/ra_ide_api/src/snapshots/tests__runnables_one_depth_layer_module.snap +++ /dev/null @@ -1,20 +0,0 @@ ---- -created: "2019-05-23T22:23:35.224315047Z" -creator: insta@0.8.1 -source: crates/ra_ide_api/src/runnables.rs -expression: "&runnables" ---- -[ - Runnable { - range: [23; 85), - kind: TestMod { - path: "foo::test_mod", - }, - }, - Runnable { - range: [46; 79), - kind: Test { - name: "test_foo1", - }, - }, -] -- cgit v1.2.3