Created
February 10, 2016 03:02
-
-
Save tsucchi/c1ecf491c312eb014d95 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use Scope::Guard; | |
| sub teardown { | |
| #... ここに teardown でやりたい終了処理を入れる | |
| } | |
| sub startup { | |
| #... ここに startup でやりたい初期化処理を入れる | |
| return Scope::Guard->new(\&teardown); | |
| } | |
| subtest 'テストケース1', sub { | |
| my $guard = startup(); | |
| #...以下テストケースを実施 | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment