diff options
author | Benjamin Coenen <[email protected]> | 2020-05-11 18:59:58 +0100 |
---|---|---|
committer | Benjamin Coenen <[email protected]> | 2020-05-11 18:59:58 +0100 |
commit | 72e3d2260b90cf3ea62f5ecd4acaf2dc5b7675c7 (patch) | |
tree | ce9bdebe238034797764c68143894814151a1d28 /crates/ra_ide | |
parent | 4e54b1ca4628e61c2534462b87f9620e2306dc59 (diff) |
add tests module snippet
Signed-off-by: Benjamin Coenen <[email protected]>
Diffstat (limited to 'crates/ra_ide')
-rw-r--r-- | crates/ra_ide/src/completion/complete_snippet.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crates/ra_ide/src/completion/complete_snippet.rs b/crates/ra_ide/src/completion/complete_snippet.rs index be8fbea2a..0568d9ccf 100644 --- a/crates/ra_ide/src/completion/complete_snippet.rs +++ b/crates/ra_ide/src/completion/complete_snippet.rs | |||
@@ -136,6 +136,14 @@ mod tests { | |||
136 | lookup: "tfn", | 136 | lookup: "tfn", |
137 | }, | 137 | }, |
138 | CompletionItem { | 138 | CompletionItem { |
139 | label: "Test module", | ||
140 | source_range: 78..78, | ||
141 | delete: 78..78, | ||
142 | insert: "#[cfg(test)]\nmod tests {\n use super::*;\n\n #[test]\n fn ${1:test_name}() {\n $0\n }\n}", | ||
143 | kind: Snippet, | ||
144 | lookup: "tmod", | ||
145 | }, | ||
146 | CompletionItem { | ||
139 | label: "macro_rules", | 147 | label: "macro_rules", |
140 | source_range: 78..78, | 148 | source_range: 78..78, |
141 | delete: 78..78, | 149 | delete: 78..78, |