Devel-Cover

 view release on metacpan or  search on metacpan

.github/workflows/ci.yml  view on Meta::CPAN

      - name: Install Perl recommend deps
        run:
          cpanm --notest
            Template
            PPI::HTML
            Perl::Tidy
            Pod::Coverage
            Pod::Coverage::CountParents
            Parallel::Iterator
            JSON::MaybeXS
            Test::Differences
            Browser::Open
            Capture::Tiny
            Class::XSAccessor
            Moo
            namespace::clean
            HTML::Parser
            Sereal::Decoder
            Sereal::Encoder
            DBM::Deep

Changes  view on Meta::CPAN


0.53 - 17th April 2005
 - Clean up database directories
 - Allow require File::Spec->catfile('t', 'common.pl'); (from an example by
   Randy W. Sims)
 - Fix core dump associated with sort subs and add test case supplied by
   Leif Eriksen
 - Add extra options for coverage criteria
 - Allow pod coverage options to be specified
 - Update copyrights
 - Allow Test::Differences output to be displayed usefully
 - Test against perl-5.9.3

0.52 - 13th December 2004
 - Fix thread locking bug (Ruslan Zakirov)
 - Make valgrind happy
 - Fix gcov2perl (Steve Peters)
 - Restore failure message to CLONE

0.51 - 29th November 2004
 - Handle $y || undef

Changes  view on Meta::CPAN

0.40 - 24th March 2004
 - Remove DB structure for unwanted files
 - Identify ops based on address and OP contents, except for op_ppaddr,
   which we modify
 - Overhaul of coverage collection
 - Additions to tests

0.39 - 22nd March 2004
 - Major database rework to store runs
 - Add Devel::Cover::DB::Structure.pm
 - Check for Test::Differences in Makefile.PL
 - Test with perl5.9.2
 - Skip fork test on MSWin32

0.38 - 12th March 2004
 - Allow coverage summary title to be changed (David Wheeler)
 - More care generating pod golden results
 - Small Devel::Cover::Op output fix
 - Handle "my $x = shift || []" and friends nicely
 - Add default_param test
 - Provide summary output to one decimal place

META.json  view on Meta::CPAN

            "JSON::MaybeXS" : "1.003003",
            "Moo" : "0",
            "PPI::HTML" : "1.07",
            "Parallel::Iterator" : "0",
            "Perl::Tidy" : "20060719",
            "Pod::Coverage" : "0.06",
            "Pod::Coverage::CountParents" : "0",
            "Sereal::Decoder" : "0",
            "Sereal::Encoder" : "0",
            "Template" : "2.00",
            "Test::Differences" : "0",
            "namespace::clean" : "0"
         },
         "requires" : {
            "Digest::MD5" : "0",
            "HTML::Entities" : "3.69",
            "Storable" : "0",
            "perl" : "5.012000"
         }
      },
      "test" : {
         "recommends" : {
            "Test::Differences" : "0"
         },
         "requires" : {
            "Math::BigInt" : "0",
            "Test::More" : "0.88"
         }
      }
   },
   "provides" : {
      "Devel::Cover" : {
         "file" : "lib/Devel/Cover.pm",

META.yml  view on Meta::CPAN

  JSON::MaybeXS: '1.003003'
  Moo: '0'
  PPI::HTML: '1.07'
  Parallel::Iterator: '0'
  Perl::Tidy: '20060719'
  Pod::Coverage: '0.06'
  Pod::Coverage::CountParents: '0'
  Sereal::Decoder: '0'
  Sereal::Encoder: '0'
  Template: '2.00'
  Test::Differences: '0'
  namespace::clean: '0'
requires:
  Digest::MD5: '0'
  HTML::Entities: '3.69'
  Storable: '0'
  perl: '5.012000'
resources:
  IRC: irc://irc.perl.org/#perl-qa
  Mailing_list: https://lists.perl.org/list/perl-qa.html
  bugtracker: https://github.com/pjcj/Devel--Cover/issues

Makefile.PL  view on Meta::CPAN

    my $w = eval { no warnings; $Pod::Coverage::CountParents::VERSION };
    $w ||= "    ";
    print "$w     $m\n";
  } else {
    print "not found\n\n\n$E\n\n";
  }
} else {
  print "not found\n\n$E\n";
}

check "Test::Differences", <<EOM;
Test::Differences is used to display output from failed tests.  Hopefully there
won't be any failed tests, but if there are you will get output that may not be
a model of clarity.  If you do get test failures and you fancy helping me by
debugging them, then you might like to consider installing Test::Differences.
You can download Test::Differences from CPAN.
EOM

check "Browser::Open", <<EOM;
Browser::Open is used to launch a web browser when the -launch flag is specified
with HTML report formats. You can download Browser::Open from CPAN.
EOM

check "HTML::Entities", <<EOM;
HTML::Entities is used to run the HTML reports.  If you would like to use the
HTML report, please install HTML::Entities.  Otherwise, other reports will be

dist.ini  view on Meta::CPAN

JSON::MaybeXS                 = 1.003003
Moo                           = 0
PPI::HTML                     = 1.07
Parallel::Iterator            = 0
Perl::Tidy                    = 20060719
Pod::Coverage                 = 0.06
Pod::Coverage::CountParents   = 0
Sereal::Decoder               = 0
Sereal::Encoder               = 0
Template                      = 2.00
Test::Differences             = 0           ; make sure it gets added
namespace::clean              = 0

[Prereqs / ConfigureRequires]
ExtUtils::MakeMaker           = 0

[Prereqs / TestRequires]
Math::BigInt                  = 0           ; so test reports will show version
Test::More                    = 0.88        ; done_testing

[Prereqs / TestRecommends]
Test::Differences             = 0

[Run::Test]
run = perl Makefile.PL && make t

[Git::Check]
; [CheckChangesHasContent]    ; ensure Changes has been updated
[NextRelease]               ; fixes up the Changes file
format = %v - %{d}d %{MMMM yyyy}d

; needs to be in this order

lib/Devel/Cover.pm  view on Meta::CPAN


=item * L<Pod::Coverage> (0.06 or above) or L<Pod::Coverage::CountParents>

One is needed if you want Pod coverage.  If L<Pod::Coverage::CountParents> is
installed, it is preferred.

=item * L<Test::More>

Required if you want to run Devel::Cover's own tests.

=item * L<Test::Differences>

Needed if the tests fail and you would like nice output telling you why.

=item * L<Template> and L<Parallel::Iterator>

Needed if you want to run cpancover.

=item * L<JSON::MaybeXS>

JSON is used to store the coverage database if it is available. JSON::MaybeXS

lib/Devel/Cover/Test.pm  view on Meta::CPAN


sub new {
  my $class = shift;
  my $test  = shift;
  croak "No test specified" unless $test;
  my %params = @_;

  my $criteria
    = delete $params{criteria} || "statement branch condition subroutine";

  eval "use Test::Differences";
  my $differences = $INC{"Test/Differences.pm"};

  my $self = bless {
    test             => $test,
    criteria         => [$criteria],
    skip             => "",
    uncoverable_file => [],
    select           => "",
    ignore           => [],
    changes          => [],
    test_parameters  => [],

utils/all_versions  view on Meta::CPAN

  my ($s) = $n =~ /(\d+)$/;
  my $version = version->parse($n);

  my @mods = qw( Test::Harness Test::Warn HTML::Entities );

  return @mods if $v =~ /-thr/ && $s != 1;

  push @mods, qw(
    Template
    Pod::Coverage
    Test::Differences
    Readonly
    Parallel::Iterator
    Sereal
    JSON::MaybeXS
  );

  push @mods, "Perl::Tidy" if !$s || $s % 2;
  push @mods, "PPI::HTML"  if !$s || !($s % 2);

  @mods



( run in 0.860 second using v1.01-cache-2.11-cpan-0b5f733616e )