feat: mod test (#414)

- Adds the mod-test block snippet
- Updates the `match` snippet to be more general
This commit is contained in:
Ardi 2024-03-31 18:18:59 +02:00 committed by GitHub
parent dcd4a58643
commit 4d43e3e834
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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": [