init
This commit is contained in:
13
snippets/rust-mode/testmod
Normal file
13
snippets/rust-mode/testmod
Normal file
@@ -0,0 +1,13 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: test module
|
||||
# key: testmod
|
||||
# --
|
||||
#[cfg(test)]
|
||||
mod ${1:tests} {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn ${2:test_name}() {
|
||||
$0
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user