File: 05parentage.t

package info (click to toggle)
libpod-coverage-perl 0.23-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 240 kB
  • sloc: perl: 611; makefile: 7
file content (19 lines) | stat: -rw-r--r-- 447 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!perl -w
use strict;
use lib 't/lib';

use Test::More tests => 5;

BEGIN {
    use_ok( 'Pod::Coverage::CountParents' );
}

my $pc = Pod::Coverage::CountParents->new(package => 'Child');
isa_ok( $pc, 'Pod::Coverage::CountParents' );

is( $pc->coverage, 1, 'picked up parent docs' );

$pc = Pod::Coverage::CountParents->new(package => 'Sibling');
isa_ok( $pc, 'Pod::Coverage::CountParents' );

is( $pc->coverage, 1, 'picked up grandparent docs' );