mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 01:17:27 +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
1 changed files with 8 additions and 0 deletions
|
@ -135,6 +135,14 @@ mod tests {
|
|||
kind: Snippet,
|
||||
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 {
|
||||
label: "macro_rules",
|
||||
source_range: 78..78,
|
||||
|
|
Loading…
Reference in a new issue