File Coverage

blib/lib/Dist/Iller/Prereq.pm
Criterion Covered Total %
statement 14 14 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 19 19 100.0


line stmt bran cond sub pod time code
1 2     2   34 use 5.14.0;
  2         7  
2 2     2   12 use strict;
  2         5  
  2         41  
3 2     2   10 use warnings;
  2         6  
  2         187  
4              
5             package Dist::Iller::Prereq;
6              
7             our $AUTHORITY = 'cpan:CSSON'; # AUTHORITY
8             # ABSTRACT: Handle a prerequisite
9             our $VERSION = '0.1410';
10              
11 2     2   18 use Dist::Iller::Elk;
  2         5  
  2         25  
12 2     2   4999 use Types::Standard qw/Str Enum/;
  2         5  
  2         15  
13              
14             has module => (
15             is => 'ro',
16             isa => Str,
17             required => 1,
18             );
19             has phase => (
20             is => 'ro',
21             isa => Enum[qw/build configure develop runtime test/],
22             required => 1,
23             );
24             has relation => (
25             is => 'ro',
26             isa => Enum[qw/requires recommends suggests conflicts/],
27             required => 1,
28             );
29             has version => (
30             is => 'rw',
31             isa => Str,
32             default => '0',
33             );
34              
35             __PACKAGE__->meta->make_immutable;
36              
37             1;
38              
39             __END__
40              
41             =pod
42              
43             =encoding UTF-8
44              
45             =head1 NAME
46              
47             Dist::Iller::Prereq - Handle a prerequisite
48              
49             =head1 VERSION
50              
51             Version 0.1410, released 2020-12-31.
52              
53             =head1 SOURCE
54              
55             L<https://github.com/Csson/p5-Dist-Iller>
56              
57             =head1 HOMEPAGE
58              
59             L<https://metacpan.org/release/Dist-Iller>
60              
61             =head1 AUTHOR
62              
63             Erik Carlsson <info@code301.com>
64              
65             =head1 COPYRIGHT AND LICENSE
66              
67             This software is copyright (c) 2020 by Erik Carlsson.
68              
69             This is free software; you can redistribute it and/or modify it under
70             the same terms as the Perl 5 programming language system itself.
71              
72             =cut