File: 04cover.t

package info (click to toggle)
libtest-strict-perl 0.14-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 100 kB
  • ctags: 30
  • sloc: perl: 486; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 423 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
 #!/usr/bin/perl -w
use strict;
use Test::More;
use Test::Strict;

unless (Test::Strict::_cover_path) {
  plan skip_all => "cover binary required to run test coverage - Set \$Test::Strict::COVER to the path to 'cover'";
  exit;
}

$Test::Strict::DEVEL_COVER_OPTIONS = '-select,"Test.Strict\b",+ignore,".Test"';
my $covered = all_cover_ok();  # 50% coverage
ok( $covered > 50 );
is( $Test::Strict::COVERAGE_THRESHOLD, 50 );