mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-02 18:12:51 +00:00
add tests module snippet
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
This commit is contained in:
parent
4e54b1ca46
commit
72e3d2260b
@ -135,6 +135,14 @@ mod tests {
|
|||||||
kind: Snippet,
|
kind: Snippet,
|
||||||
lookup: "tfn",
|
lookup: "tfn",
|
||||||
},
|
},
|
||||||
|
CompletionItem {
|
||||||
|
label: "Test module",
|
||||||
|
source_range: 78..78,
|
||||||
|
delete: 78..78,
|
||||||
|
insert: "#[cfg(test)]\nmod tests {\n use super::*;\n\n #[test]\n fn ${1:test_name}() {\n $0\n }\n}",
|
||||||
|
kind: Snippet,
|
||||||
|
lookup: "tmod",
|
||||||
|
},
|
||||||
CompletionItem {
|
CompletionItem {
|
||||||
label: "macro_rules",
|
label: "macro_rules",
|
||||||
source_range: 78..78,
|
source_range: 78..78,
|
||||||
|
Loading…
Reference in New Issue
Block a user