mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
⬆️ insta
This commit is contained in:
parent
5a99184967
commit
0f6c048ce1
26 changed files with 1446 additions and 1486 deletions
|
@ -200,7 +200,7 @@ mod tests {
|
|||
mock_analysis::analysis_and_position, mock_analysis::single_file_with_position, FileId,
|
||||
ReferenceSearchResult,
|
||||
};
|
||||
use insta::assert_debug_snapshot_matches;
|
||||
use insta::assert_debug_snapshot;
|
||||
use test_utils::assert_eq_text;
|
||||
|
||||
#[test]
|
||||
|
@ -341,7 +341,7 @@ mod tests {
|
|||
);
|
||||
let new_name = "foo2";
|
||||
let source_change = analysis.rename(position, new_name).unwrap();
|
||||
assert_debug_snapshot_matches!(&source_change,
|
||||
assert_debug_snapshot!(&source_change,
|
||||
@r#"Some(
|
||||
SourceChange {
|
||||
label: "rename",
|
||||
|
@ -388,7 +388,7 @@ mod tests {
|
|||
);
|
||||
let new_name = "foo2";
|
||||
let source_change = analysis.rename(position, new_name).unwrap();
|
||||
assert_debug_snapshot_matches!(&source_change,
|
||||
assert_debug_snapshot!(&source_change,
|
||||
@r###"Some(
|
||||
SourceChange {
|
||||
label: "rename",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue