aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_analysis
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2019-01-03 17:15:41 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2019-01-03 17:15:41 +0000
commit6c0bca5984a6b66d306f9a413b0433c15d450500 (patch)
tree62a4dfebe2b179df6c7636100e1c13e33afe16f5 /crates/ra_analysis
parent8a24f25482f07eecab254c93223369fa532c076f (diff)
parentcd32177a25a98026584a514de46461ce66f3eb56 (diff)
Merge #420
420: unit-tests r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_analysis')
-rw-r--r--crates/ra_analysis/tests/test/main.rs (renamed from crates/ra_analysis/tests/tests.rs)3
-rw-r--r--crates/ra_analysis/tests/test/runnables.rs (renamed from crates/ra_analysis/tests/runnables.rs)11
-rw-r--r--crates/ra_analysis/tests/test/type_of.rs (renamed from crates/ra_analysis/tests/type_of.rs)4
3 files changed, 5 insertions, 13 deletions
diff --git a/crates/ra_analysis/tests/tests.rs b/crates/ra_analysis/tests/test/main.rs
index c2ef87b54..23a5799b9 100644
--- a/crates/ra_analysis/tests/tests.rs
+++ b/crates/ra_analysis/tests/test/main.rs
@@ -1,3 +1,6 @@
1mod runnables;
2mod type_of;
3
1use ra_syntax::TextRange; 4use ra_syntax::TextRange;
2use test_utils::{assert_eq_dbg, assert_eq_text}; 5use test_utils::{assert_eq_dbg, assert_eq_text};
3 6
diff --git a/crates/ra_analysis/tests/runnables.rs b/crates/ra_analysis/tests/test/runnables.rs
index 9e5342c46..e6e0afbc3 100644
--- a/crates/ra_analysis/tests/runnables.rs
+++ b/crates/ra_analysis/tests/test/runnables.rs
@@ -1,15 +1,6 @@
1extern crate ra_analysis;
2extern crate ra_editor;
3extern crate ra_syntax;
4extern crate relative_path;
5extern crate rustc_hash;
6extern crate test_utils;
7
8use test_utils::assert_eq_dbg; 1use test_utils::assert_eq_dbg;
9 2
10use ra_analysis::{ 3use ra_analysis::mock_analysis::analysis_and_position;
11 mock_analysis::{analysis_and_position},
12};
13 4
14#[test] 5#[test]
15fn test_runnables() { 6fn test_runnables() {
diff --git a/crates/ra_analysis/tests/type_of.rs b/crates/ra_analysis/tests/test/type_of.rs
index 375f808bb..9d15b52a8 100644
--- a/crates/ra_analysis/tests/type_of.rs
+++ b/crates/ra_analysis/tests/test/type_of.rs
@@ -1,6 +1,4 @@
1use ra_analysis::{ 1use ra_analysis::mock_analysis::single_file_with_range;
2 mock_analysis::{single_file_with_range},
3};
4 2
5#[test] 3#[test]
6fn test_type_of_for_function() { 4fn test_type_of_for_function() {