File: no-pod-parent.t

package info (click to toggle)
libpod-coverage-trustpod-perl 0.100003-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 160 kB
  • ctags: 22
  • sloc: perl: 184; makefile: 2
file content (27 lines) | stat: -rw-r--r-- 464 bytes parent folder | download | duplicates (5)
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
#!perl
use strict;
use warnings;

use Test::More tests => 3;

use Carp::Heavy; # Preload since we mangle @INC

my $PC = 'Pod::Coverage::TrustPod';

require_ok($PC);

my $ok = eval { 
  use lib 't/eg';
  {
      my $obj = $PC->new( package  => 'ChildWithPod',);
      if (! defined $obj->coverage) {
        diag "no coverage: " . $obj->why_unrated;
        die;
      }
  }

  return 1;
};

is($@, '', "expected to live (no error)");
ok($ok, 'expecting to live');