生井 智司 > Test-More-Hooks-0.01 > Test::More::Hooks

Download:
Test-More-Hooks-0.01.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.01   Source   Latest Release: Test-More-Hooks-0.12

NAME ^

Test::More::Hooks - It provides before/after hooks of subtest.

SYNOPSIS ^

    use Test::More;
    use Test::More::Hooks;

    subtest "some context" => sub {
        my $subject;
        before { $subject = Foo->new; };
        after  { undef $subject; };

        subtest "given some argument" => sub {
            my $actual = $subject->foo(1,2,3);
            is $actual, 10;
        };
    };

DESCRIPTION ^

Test::More::Hooks is ...

LICENSE ^

Copyright (C) ainame.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR ^

ainame <ainame954@facebook.com>

syntax highlighting: