File: autoname.t

package info (click to toggle)
libdist-zilla-perl 6.012-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,668 kB
  • sloc: perl: 6,968; makefile: 9; sh: 6
file content (29 lines) | stat: -rw-r--r-- 450 bytes parent folder | download | duplicates (7)
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
use strict;
use warnings;
use Test::More 0.88;

use lib 't/lib';

use Test::DZil;
use YAML::Tiny;

{
  my $tzil = Builder->from_config(
    { dist_root => 'corpus/dist/DZT' },
    {
      add_files => {
        'source/dist.ini' => simple_ini(
          { name => undef },
          'GatherDir',
          'TestAutoName',
        ),
      },
    },
  );

  $tzil->build;

  is($tzil->name, 'FooBar', "dist name is set (in DZ obj)");
}

done_testing;