Lines Matching defs:plan
28 @EXPORT = qw(&plan &ok &skip);
49 # use a BEGIN block so we print our plan before MyModule is loaded
50 BEGIN { plan tests => 14, todo => [3,4] }
101 This module defines three public functions, C<plan(...)>, C<ok(...)>,
107 =item C<plan(...)>
109 BEGIN { plan %theplan; }
112 declares your testing plan, how many there will be, if any of them
118 BEGIN { plan tests => 23 }
120 These are the things that you can put in the parameters to plan:
143 You must call C<plan(...)> once and only once. You should call it
146 BEGIN { plan tests => 23 }
150 sub plan {
151 croak "Test::plan(%args): odd number of arguments" if @_ & 1;
152 croak "Test::plan(): should not be called more than once" if $planned;
168 ref $v eq 'CODE' or croak "Test::plan(onfail => $v): must be CODE";
171 else { carp "Test::plan(): skipping unrecognized directive '$k'" }
336 croak "ok: plan before you test!" if !$planned;
595 BEGIN { plan test => 4, onfail => sub { warn "CALL 911!" } }