mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
⬆️ insta
This commit is contained in:
parent
5a99184967
commit
0f6c048ce1
26 changed files with 1446 additions and 1486 deletions
|
@ -71,7 +71,7 @@ fn runnable_mod(db: &RootDatabase, file_id: FileId, module: ast::Module) -> Opti
|
|||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use insta::assert_debug_snapshot_matches;
|
||||
use insta::assert_debug_snapshot;
|
||||
|
||||
use crate::mock_analysis::analysis_and_position;
|
||||
|
||||
|
@ -92,7 +92,7 @@ mod tests {
|
|||
"#,
|
||||
);
|
||||
let runnables = analysis.runnables(pos.file_id).unwrap();
|
||||
assert_debug_snapshot_matches!(&runnables,
|
||||
assert_debug_snapshot!(&runnables,
|
||||
@r#"[
|
||||
Runnable {
|
||||
range: [1; 21),
|
||||
|
@ -127,7 +127,7 @@ mod tests {
|
|||
"#,
|
||||
);
|
||||
let runnables = analysis.runnables(pos.file_id).unwrap();
|
||||
assert_debug_snapshot_matches!(&runnables,
|
||||
assert_debug_snapshot!(&runnables,
|
||||
@r#"[
|
||||
Runnable {
|
||||
range: [1; 59),
|
||||
|
@ -160,7 +160,7 @@ mod tests {
|
|||
"#,
|
||||
);
|
||||
let runnables = analysis.runnables(pos.file_id).unwrap();
|
||||
assert_debug_snapshot_matches!(&runnables,
|
||||
assert_debug_snapshot!(&runnables,
|
||||
@r#"[
|
||||
Runnable {
|
||||
range: [23; 85),
|
||||
|
@ -195,7 +195,7 @@ mod tests {
|
|||
"#,
|
||||
);
|
||||
let runnables = analysis.runnables(pos.file_id).unwrap();
|
||||
assert_debug_snapshot_matches!(&runnables,
|
||||
assert_debug_snapshot!(&runnables,
|
||||
@r#"[
|
||||
Runnable {
|
||||
range: [41; 115),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue