File: script-covered

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 (27 lines) | stat: -rw-r--r-- 348 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
20
21
22
23
24
25
26
27
#!/usr/bin/perl -w
use strict;

my $file = shift || die "need something to test";
my $code;

open F, $file;
{
    local $/;
    $code = <F>;
}
close F;

eval qq{
package testme;

$code;

1;
};
$INC{'testme.pm'} = 1;

print testme::foo();

require Pod::Coverage;
Pod::Coverage->import(pod_from => $file,
                      package  => 'testme');