File: pod_cov.t

package info (click to toggle)
libgraph-easy-perl 0.71-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,284 kB
  • sloc: perl: 24,909; makefile: 2
file content (83 lines) | stat: -rw-r--r-- 1,878 bytes parent folder | download | duplicates (4)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/usr/bin/perl -w

use Test::More;
use strict;

my $tests;

BEGIN
   {
   $tests = 21;
   plan tests => $tests;
   chdir 't' if -d 't';
   use lib '../lib';
   };

SKIP:
  {
  skip("Test::Pod::Coverage 1.08 and Pod::Coverage 0.19 required for testing POD coverage", $tests)
    unless do {
    eval "use Test::Pod::Coverage 1.08";
    my $r = ($@ ? 0 : 1);
    eval "use Pod::Coverage 0.19";	# need this on newer Perls to avoid false-fails
    $r & ($@ ? 0 : 1);			# only return true if we have both
    };
  for my $m (qw/
    Graph::Easy
    Graph::Easy::Node
    Graph::Easy::Group
    Graph::Easy::Edge
    Graph::Easy::Base
    Graph::Easy::As_ascii
    Graph::Easy::As_txt
    Graph::Easy::As_graphviz
    Graph::Easy::As_vcg
    Graph::Easy::Layout::Chain
    Graph::Easy::Layout::Grid
    Graph::Easy::Layout::Path
    Graph::Easy::Layout::Scout
    Graph::Easy::Layout::Repair
    Graph::Easy::Attributes
   /)
    {
    pod_coverage_ok( $m, "$m is covered" );
    }

  my $trustparents = { coverage_class => 'Pod::Coverage::CountParents' };
  for my $m (qw/
    Graph::Easy::Node::Anon
    Graph::Easy::Group::Anon
   /)
    {
    pod_coverage_ok( $m, $trustparents, "$m is covered" );
    }

  # Define the global CONSTANTS for internal usage
  my $trustme = { trustme => [ qr/^(
	ACTION_CHAIN|
	ACTION_NODE|
	ACTION_TRACE|
	ACTION_EDGES|
	ACTION_SPLICE|
	ATTR_COLOR|
	ATTR_DEFAULT_SLOT|
	ATTR_DESC_SLOT|
	ATTR_EXAMPLE_SLOT|
	ATTR_MATCH_SLOT|
	ATTR_STRING|
	ATTR_ANGLE|
	ATTR_PORT|
	ATTR_TYPE_SLOT|
    )\z/x ] };
  pod_coverage_ok( "Graph::Easy::Layout", $trustme );

  # Define the global CONSTANTS for internal usage
  $trustme = { trustme => [ qr/^(
	NO_MULTIPLES
    )\z/x ] };
  pod_coverage_ok( "Graph::Easy::Parser", $trustme );
  pod_coverage_ok( "Graph::Easy::Parser::Graphviz", $trustme );
  pod_coverage_ok( "Graph::Easy::Parser::VCG", $trustme );

  }