/usr/share/doc/libtest-simple-perl/examples/subtest.t is in libtest-simple-perl 1.001002-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #!/usr/bin/env perl
use strict;
use warnings;
use lib '../lib';
use Test::More tests => 3;
ok 1;
subtest 'some name' => sub {
my $num_tests = 2 + int( rand(3) );
plan tests => $num_tests;
ok 1 for 1 .. $num_tests - 1;
subtest 'some name' => sub {
plan 'no_plan';
ok 1 for 1 .. 2 + int( rand(3) );
};
};
ok 1;
|