File: 01-basic.t

package info (click to toggle)
libdist-zilla-plugin-bootstrap-lib-perl 1.001000-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 316 kB
  • ctags: 2
  • sloc: perl: 221; makefile: 2
file content (31 lines) | stat: -rw-r--r-- 490 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
use strict;
use warnings;

use Test::More;
use Test::DZil qw( simple_ini );
use Dist::Zilla::Util::Test::KENTNL 1.003001 qw(dztest);
require Dist::Zilla::Plugin::Bootstrap::lib;

my $t = dztest();
$t->add_file(
  'dist.ini' => simple_ini(
    { name => 'E' },
    [ 'Bootstrap::lib', ],    #
    ['=E'],
  )
);
$t->add_file( 'lib/E.pm', <<'EOF');
use strict;
use warnings;
package E;

sub register_component {}

1;
EOF

$t->build_ok;

note explain $t->builder->log_messages;

done_testing;