Skip to content

Commit

Permalink
feat: mod test (#414)
Browse files Browse the repository at this point in the history
- Adds the mod-test block snippet
- Updates the `match` snippet to be more general
  • Loading branch information
dev-ardi authored Mar 31, 2024
1 parent dcd4a58 commit 4d43e3e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions snippets/rust/rust.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit 4d43e3e

Please sign in to comment.