File: missing-file.t

package info (click to toggle)
libtest-pod-perl 1.52-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 188 kB
  • sloc: perl: 275; makefile: 8
file content (30 lines) | stat: -rw-r--r-- 624 bytes parent folder | download | duplicates (3)
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
28
29
30
#!perl -T

use strict;
use warnings;

use Test::Builder::Tester tests => 3;
use Test::More;

BEGIN {
    use_ok( 'Test::Pod' );
}

MISSING_FILE: {
    my $file = 't/non-existent.pod';
    test_out( "not ok 1 - I hope the file is there" );
    test_fail(+1);
    pod_file_ok( $file, "I hope the file is there" );
    test_diag( "$file does not exist" );
    test_test( "$file is bad" );
}


MISSING_FILE_NO_MESSAGE: {
    my $file = 't/non-existent.pod';
    test_out( "not ok 1 - POD test for $file" );
    test_fail(+1);
    pod_file_ok( $file );
    test_diag( "$file does not exist" );
    test_test( "$file is bad" );
}