yasnippet-snippets/snippets/rust-mode/testmod

13 lines
168 B
Plaintext
Raw Normal View History

2016-08-01 17:48:50 +02:00
# -*- mode: snippet -*-
# name: test module
# key: testmod
# --
#[cfg(test)]
mod ${1:tests} {
2016-08-01 17:48:50 +02:00
use super::*;
#[test]
fn ${2:test_name}() {
$0
2016-08-01 17:48:50 +02:00
}
}