PATH:
usr
/
share
/
doc
/
perl-Test-Simple-0.98
/
t
/
Builder
#!/usr/bin/perl -w 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 $tb = Test::Builder::NoOutput->create; { # Normalize test output local $ENV{HARNESS_ACTIVE}; $tb->ok(1); $tb->ok(1); $tb->ok(1); #line 24 $tb->done_testing(3); $tb->done_testing; $tb->done_testing; } my $Test = Test::Builder->new; $Test->plan( tests => 1 ); $Test->level(0); $Test->is_eq($tb->read, <<"END", "multiple done_testing"); ok 1 ok 2 ok 3 1..3 not ok 4 - done_testing() was already called at $0 line 24 # Failed test 'done_testing() was already called at $0 line 24' # at $0 line 25. not ok 5 - done_testing() was already called at $0 line 24 # Failed test 'done_testing() was already called at $0 line 24' # at $0 line 26. 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]