aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/runnables.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-08-29 15:04:28 +0100
committerGitHub <[email protected]>2019-08-29 15:04:28 +0100
commit7d72ca80003b7915ed7fc64907b5b6dc5c88dacd (patch)
tree4aa7826d1b9a7222ad64085f136a1615d7daa7a5 /crates/ra_ide_api/src/runnables.rs
parent5a99184967c89992df4544d0c1ca27d79946a1a7 (diff)
parent0f6c048ce1a621ccd3e2080ec5aafbd053c516f4 (diff)
Merge #1738
1738: :arrow_up: insta r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide_api/src/runnables.rs')
-rw-r--r--crates/ra_ide_api/src/runnables.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/crates/ra_ide_api/src/runnables.rs b/crates/ra_ide_api/src/runnables.rs
index 9ea96909e..9d84b3d08 100644
--- a/crates/ra_ide_api/src/runnables.rs
+++ b/crates/ra_ide_api/src/runnables.rs
@@ -71,7 +71,7 @@ fn runnable_mod(db: &RootDatabase, file_id: FileId, module: ast::Module) -> Opti
71 71
72#[cfg(test)] 72#[cfg(test)]
73mod tests { 73mod tests {
74 use insta::assert_debug_snapshot_matches; 74 use insta::assert_debug_snapshot;
75 75
76 use crate::mock_analysis::analysis_and_position; 76 use crate::mock_analysis::analysis_and_position;
77 77
@@ -92,7 +92,7 @@ mod tests {
92 "#, 92 "#,
93 ); 93 );
94 let runnables = analysis.runnables(pos.file_id).unwrap(); 94 let runnables = analysis.runnables(pos.file_id).unwrap();
95 assert_debug_snapshot_matches!(&runnables, 95 assert_debug_snapshot!(&runnables,
96 @r#"[ 96 @r#"[
97 Runnable { 97 Runnable {
98 range: [1; 21), 98 range: [1; 21),
@@ -127,7 +127,7 @@ mod tests {
127 "#, 127 "#,
128 ); 128 );
129 let runnables = analysis.runnables(pos.file_id).unwrap(); 129 let runnables = analysis.runnables(pos.file_id).unwrap();
130 assert_debug_snapshot_matches!(&runnables, 130 assert_debug_snapshot!(&runnables,
131 @r#"[ 131 @r#"[
132 Runnable { 132 Runnable {
133 range: [1; 59), 133 range: [1; 59),
@@ -160,7 +160,7 @@ mod tests {
160 "#, 160 "#,
161 ); 161 );
162 let runnables = analysis.runnables(pos.file_id).unwrap(); 162 let runnables = analysis.runnables(pos.file_id).unwrap();
163 assert_debug_snapshot_matches!(&runnables, 163 assert_debug_snapshot!(&runnables,
164 @r#"[ 164 @r#"[
165 Runnable { 165 Runnable {
166 range: [23; 85), 166 range: [23; 85),
@@ -195,7 +195,7 @@ mod tests {
195 "#, 195 "#,
196 ); 196 );
197 let runnables = analysis.runnables(pos.file_id).unwrap(); 197 let runnables = analysis.runnables(pos.file_id).unwrap();
198 assert_debug_snapshot_matches!(&runnables, 198 assert_debug_snapshot!(&runnables,
199 @r#"[ 199 @r#"[
200 Runnable { 200 Runnable {
201 range: [41; 115), 201 range: [41; 115),