File: 09-version_provider.t

package info (click to toggle)
libdist-zilla-plugin-ourpkgversion-perl 1%3A0.21-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 356 kB
  • sloc: perl: 738; sh: 4; makefile: 2
file content (29 lines) | stat: -rw-r--r-- 476 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/perl
use strict;
use warnings;
use 5.014;
use Test::More;
use Test::DZil;
use Test::Version qw( version_ok );
use Path::Tiny qw( path );

package Dist::Zilla::Plugin::MyVersionProvider {

  use Moose;
  with 'Dist::Zilla::Role::VersionProvider';

  sub provide_version
  {
    '1.00';
  }

}

my $tzil = Builder->from_config({ dist_root => 'corpus/version_provider' });

$tzil->build;

version_ok( path($tzil->tempdir)->child('build/lib/DZT0.pm'));

done_testing;