Skip to content

Commit f48fc21

Browse files
tim3zjasonwilliams
authored andcommitted
add a snippet to create a tests module (#269)
* add a snippet to create a tests module * change snippet key to tests-mod
1 parent c16825d commit f48fc21

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

snippets/tests-mod.sublime-snippet

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<snippet>
2+
<content><![CDATA[
3+
#[cfg(test)]
4+
mod tests {
5+
use super::*;
6+
7+
#[test]
8+
fn ${1:name}() {
9+
${2:unimplemented!();}
10+
}
11+
}]]></content>
12+
<tabTrigger>tests-mod</tabTrigger>
13+
<scope>source.rust</scope>
14+
</snippet>

0 commit comments

Comments
 (0)