File: 600.t

package info (click to toggle)
libtest-simple-perl 1.302211-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,972 kB
  • sloc: perl: 19,894; makefile: 7
file content (16 lines) | stat: -rw-r--r-- 364 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use Test2::API qw/intercept/;
use Test::More;

my $TEST = Test::Builder->new();

sub fake {
    $TEST->use_numbers(0);
    $TEST->no_ending(1);
    $TEST->done_testing(1);    # a computed number of tests from its deferred magic
}

my $events = intercept { fake() };
is(@$events, 1, "only 1 event");
is($events->[0]->max, 1, "Plan set to 1, not 0");

done_testing;