Lines Matching defs:plan
298 my $plan = $chub->plan || 0;
303 my $num_extra = $plan =~ m/\D/ ? 0 : $count - $plan;
305 my $s = $plan == 1 ? '' : 's';
307 Looks like you planned $plan test$s but ran $count.
330 my $plan = $chub->plan;
331 if ( $plan && $plan eq 'SKIP' ) {
406 my $plan = $st_hub->plan;
409 if (!$count && (!defined($plan) || "$plan" ne 'SKIP')) {
410 $st_ctx->plan(0) unless defined $plan;
493 sub plan {
501 $ctx->throw("You tried to plan twice") if $hub->plan;
511 $ctx->throw("plan() doesn't understand @args");
548 $ctx->plan($max);
555 my $plan = $hub->plan;
556 return 0 unless $plan;
557 return 0 if $plan =~ m/\D/;
558 return $plan;
567 if (defined $ctx->hub->plan) {
575 $ctx->hub->plan('NO PLAN');
597 my $plan = $ctx->hub->plan;
602 $ctx->plan($num_tests) if !$plan || $plan eq 'NO PLAN';
616 $ctx->plan($num_tests) if $ctx->hub->plan && $ctx->hub->plan eq 'NO PLAN';
628 my $plan = $ctx->hub->plan;
631 return( $plan ) if $plan && $plan !~ m/\D/;
632 return('no_plan') if $plan && $plan eq 'NO PLAN';
660 $ctx->plan(0, SKIP => $reason);
1666 my $plan = $hub->plan;
1670 return unless $plan || $count || $failed;
1672 # Ran tests but never declared a plan or hit done_testing
1673 if( !defined($hub->plan) and $hub->count ) {
1674 $self->diag("Tests were run but no plan was declared and done_testing() was not seen.");
1701 return if $plan && "$plan" eq 'SKIP';
1717 if ($plan eq 'NO PLAN') {
1718 $ctx->plan( $count );
1719 $plan = $hub->plan;
1723 my $num_extra = $count - $plan;
1726 my $s = $plan == 1 ? '' : 's';
1728 Looks like you planned $plan test$s but ran $count.
1905 =item B<plan>
1907 $Test->plan('no_plan');
1908 $Test->plan( skip_all => $reason );
1909 $Test->plan( tests => $num_tests );
1914 If you call C<plan()>, don't call any of the other methods below.
1939 If a plan has not yet been output, it will do so.
1942 plan was already declared, and if this contradicts, a failing test
1958 Or to plan a variable number of tests:
1968 $plan = $Test->has_plan
1970 Find out whether a plan has been defined. C<$plan> is either C<undef> (no plan
2111 Like C<skip()>, only it skips all the rest of the tests you plan to run