Dist-Zilla-Plugin-Test-CheckBreaks

 view release on metacpan or  search on metacpan

lib/Dist/Zilla/Plugin/Test/CheckBreaks.pm  view on Meta::CPAN

        {
            phase => 'test',
            type  => $self->no_forced_deps ? 'suggests' : 'requires',
        },
        'CPAN::Meta::Requirements' => '0',
        'CPAN::Meta::Check' => $self->_cmc_prereq,
    );
}

has _x_breaks_data => (
    is => 'ro', isa => 'HashRef[Str]',
    init_arg => undef,
    lazy => 1,
    default => sub {
        my $self = shift;
        my $breaks_data = $self->zilla->distmeta->{x_breaks};
        defined $breaks_data ? $breaks_data : {};
    },
);

sub _test_count {

t/lib/Breaks.pm  view on Meta::CPAN

use strict;
use warnings;
package # hide from PAUSE! but see Dist::Zilla::Plugin::Breaks...
    Breaks;
use Moose;
with 'Dist::Zilla::Role::MetaProvider';
use CPAN::Meta::Requirements;

has breaks => (
    is => 'ro', isa => 'HashRef[Str]',
    required => 1,
);
around BUILDARGS => sub {
    my $orig = shift;
    my $self = shift;
    my $args = $self->$orig(@_);
    return {
        zilla => delete $args->{zilla},
        plugin_name => delete $args->{plugin_name},
        breaks => $args,



( run in 0.760 second using v1.01-cache-2.11-cpan-5f2e87ce722 )