PATH:
usr
/
share
/
doc
/
perl-Test-Simple-0.98
/
t
/
Builder
#!/usr/bin/perl -w # Test what happens when no plan is declared and done_testing() is not seen use strict; BEGIN { if( $ENV{PERL_CORE} ) { chdir 't'; @INC = ('../lib', 'lib'); } else { unshift @INC, 't/lib'; } } use Test::Builder; use Test::Builder::NoOutput; my $Test = Test::Builder->new; $Test->level(0); $Test->plan( tests => 1 ); my $tb = Test::Builder::NoOutput->create; { $tb->level(0); $tb->ok(1, "just a test"); $tb->ok(1, " and another"); $tb->_ending; } $Test->is_eq($tb->read, <<'END', "proper behavior when no plan is seen"); ok 1 - just a test ok 2 - and another # Tests were run but no plan was declared and done_testing() was not seen. END
[-] current_test.t
[edit]
[-] Builder.t
[edit]
[-] has_plan2.t
[edit]
[-] try.t
[edit]
[+]
..
[-] no_header.t
[edit]
[-] reset.t
[edit]
[-] carp.t
[edit]
[-] reset_outputs.t
[edit]
[-] current_test_without_plan.t
[edit]
[-] done_testing_plan_mismatch.t
[edit]
[-] is_passing.t
[edit]
[-] done_testing_with_plan.t
[edit]
[-] ok_obj.t
[edit]
[-] create.t
[edit]
[-] no_diag.t
[edit]
[-] done_testing_with_no_plan.t
[edit]
[-] output.t
[edit]
[-] no_plan_at_all.t
[edit]
[-] done_testing_double.t
[edit]
[-] details.t
[edit]
[-] done_testing.t
[edit]
[-] maybe_regex.t
[edit]
[-] no_ending.t
[edit]
[-] fork_with_new_stdout.t
[edit]
[-] has_plan.t
[edit]
[-] is_fh.t
[edit]
[-] done_testing_with_number.t
[edit]