Introduce ra_db::fixture fixture module

The goal here is to share more testing infrastructure between crates.
This commit is contained in:
Aleksey Kladov 2019-11-03 20:53:17 +03:00
parent ba2efca2bb
commit 0933d914a3
7 changed files with 97 additions and 11 deletions

View file

@ -1,17 +1,18 @@
//! ra_db defines basic database traits. The concrete DB is defined by ra_ide_api.
mod cancellation;
mod input;
pub mod fixture;
use std::{panic, sync::Arc};
use ra_prof::profile;
use ra_syntax::{ast, Parse, SourceFile, TextRange, TextUnit};
use relative_path::{RelativePath, RelativePathBuf};
pub use crate::{
cancellation::Canceled,
input::{CrateGraph, CrateId, Dependency, Edition, FileId, SourceRoot, SourceRootId},
};
pub use relative_path::{RelativePath, RelativePathBuf};
pub use salsa;
pub trait CheckCanceled {