mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-16 17:58:16 +00:00
Merge #161
161: Fix the test r=matklad a=matklad Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
2cb2074c4b
1 changed files with 41 additions and 17 deletions
|
@ -41,6 +41,25 @@ fn foo() {
|
|||
"end": { "character": 1, "line": 2 },
|
||||
"start": { "character": 0, "line": 0 }
|
||||
}
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
"check",
|
||||
"--all"
|
||||
],
|
||||
"bin": "cargo",
|
||||
"env": {},
|
||||
"label": "cargo check --all",
|
||||
"range": {
|
||||
"end": {
|
||||
"character": 0,
|
||||
"line": 0
|
||||
},
|
||||
"start": {
|
||||
"character": 0,
|
||||
"line": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]"#,
|
||||
);
|
||||
|
@ -79,24 +98,29 @@ fn test_eggs() {}
|
|||
"end": { "character": 17, "line": 1 },
|
||||
"start": { "character": 0, "line": 0 }
|
||||
}
|
||||
},
|
||||
{
|
||||
"args": [
|
||||
"check",
|
||||
"--package",
|
||||
"foo",
|
||||
"--test",
|
||||
"spam"
|
||||
],
|
||||
"bin": "cargo",
|
||||
"env": {},
|
||||
"label": "cargo check -p foo",
|
||||
"range": {
|
||||
"end": {
|
||||
"character": 0,
|
||||
"line": 0
|
||||
},
|
||||
"start": {
|
||||
"character": 0,
|
||||
"line": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]"#
|
||||
);
|
||||
}
|
||||
|
||||
// #[test]
|
||||
// fn test_deps() {
|
||||
// let server = project(r#"
|
||||
// //- Cargo.toml
|
||||
// [package]
|
||||
// name = "foo"
|
||||
// version = "0.0.0"
|
||||
// [dependencies]
|
||||
// regex = "=1.0.4"
|
||||
|
||||
// //- src/lib.rs
|
||||
// extern crate regex;
|
||||
// "#);
|
||||
// server.wait_for_feedback("workspace loaded");
|
||||
// server.wait_for_feedback_n("library loaded", 9);
|
||||
// }
|
||||
|
|
Loading…
Reference in a new issue