mirror of
https://github.com/rafamadriz/friendly-snippets
synced 2024-09-16 14:04:03 +02:00
feat: mod test (#414)
- Adds the mod-test block snippet - Updates the `match` snippet to be more general
This commit is contained in:
parent
dcd4a58643
commit
4d43e3e834
1 changed files with 13 additions and 0 deletions
|
@ -391,6 +391,19 @@
|
|||
],
|
||||
"description": "struct … { … }"
|
||||
},
|
||||
"modtest": {
|
||||
"prefix": "modtest",
|
||||
"body": [
|
||||
"#[cfg(test)]",
|
||||
"mod test {",
|
||||
" #[test]",
|
||||
" fn ${1:name}() {",
|
||||
" ${2:todo!();}",
|
||||
" }",
|
||||
"}"
|
||||
],
|
||||
"description": "#[cfg(test)]\nmod test {...}"
|
||||
},
|
||||
"test": {
|
||||
"prefix": "test",
|
||||
"body": [
|
||||
|
|
Loading…
Reference in a new issue