Added snippets for Emacs
This commit is contained in:
21
emacs/.emacs.d/snippets/sh-mode/test
Normal file
21
emacs/.emacs.d/snippets/sh-mode/test
Normal file
@@ -0,0 +1,21 @@
|
||||
#name : test
|
||||
# --
|
||||
#! /usr/bin/env bash
|
||||
|
||||
## author: torstein, torstein@skybert.net
|
||||
|
||||
## @override shunit2
|
||||
setUp() {
|
||||
source "$(dirname "\$0")/../lib/$(basename "\$0" -test.sh).sh"
|
||||
}
|
||||
|
||||
## @override shunit2
|
||||
tearDown() {
|
||||
:
|
||||
}
|
||||
|
||||
main() {
|
||||
. "$(dirname "\$0")"/shunit2/shunit2
|
||||
}
|
||||
|
||||
main "$@"
|
||||
Reference in New Issue
Block a user