File: zzz-check-breaks.t

package info (click to toggle)
libtest-kwalitee-perl 1.22-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 312 kB
  • ctags: 4
  • sloc: perl: 310; makefile: 2
file content (31 lines) | stat: -rw-r--r-- 741 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;

# this test was generated with Dist::Zilla::Plugin::Test::CheckBreaks 0.009

use Test::More;

SKIP: {
    skip 'no conflicts module found to check against', 1;
}

my $breaks = {
  "Dist::Zilla::Plugin::Test::Kwalitee" => "<= 2.04"
};

use CPAN::Meta::Requirements;
my $reqs = CPAN::Meta::Requirements->new;
$reqs->add_string_requirement($_, $breaks->{$_}) foreach keys %$breaks;

use CPAN::Meta::Check 0.007 'check_requirements';
our $result = check_requirements($reqs, 'conflicts');

if (my @breaks = grep { defined $result->{$_} } keys %$result)
{
    diag 'Breakages found with Test-Kwalitee:';
    diag "$result->{$_}" for sort @breaks;
    diag "\n", 'You should now update these modules!';
}


done_testing;