mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Merge #420
420: unit-tests r=matklad a=matklad Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
6c0bca5984
3 changed files with 5 additions and 13 deletions
|
@ -1,3 +1,6 @@
|
||||||
|
mod runnables;
|
||||||
|
mod type_of;
|
||||||
|
|
||||||
use ra_syntax::TextRange;
|
use ra_syntax::TextRange;
|
||||||
use test_utils::{assert_eq_dbg, assert_eq_text};
|
use test_utils::{assert_eq_dbg, assert_eq_text};
|
||||||
|
|
|
@ -1,15 +1,6 @@
|
||||||
extern crate ra_analysis;
|
|
||||||
extern crate ra_editor;
|
|
||||||
extern crate ra_syntax;
|
|
||||||
extern crate relative_path;
|
|
||||||
extern crate rustc_hash;
|
|
||||||
extern crate test_utils;
|
|
||||||
|
|
||||||
use test_utils::assert_eq_dbg;
|
use test_utils::assert_eq_dbg;
|
||||||
|
|
||||||
use ra_analysis::{
|
use ra_analysis::mock_analysis::analysis_and_position;
|
||||||
mock_analysis::{analysis_and_position},
|
|
||||||
};
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_runnables() {
|
fn test_runnables() {
|
|
@ -1,6 +1,4 @@
|
||||||
use ra_analysis::{
|
use ra_analysis::mock_analysis::single_file_with_range;
|
||||||
mock_analysis::{single_file_with_range},
|
|
||||||
};
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_type_of_for_function() {
|
fn test_type_of_for_function() {
|
Loading…
Add table
Add a link
Reference in a new issue