File: 099_pod_coverage.t

package info (click to toggle)
libsoap-wsdl-perl 3.004-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,600 kB
  • sloc: perl: 8,433; xml: 1,769; java: 19; makefile: 15
file content (76 lines) | stat: -rw-r--r-- 2,201 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
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
use Test::More;


if ( not $ENV{RELEASE_TESTING} ) {
    my $msg = 'Author test.  Set $ENV{RELEASE_TESTING} to a true value to run.';
    plan( skip_all => $msg );
}

eval "use Test::Pod::Coverage 1.00";
plan skip_all => "Test::Pod::Coverage 1.00 required for testing POD" if $@;

my @dirs = ( 'lib' );
if (-d '../t/') {       # we are inside t/
    @dirs = ('../lib');
}
else {                  # we are outside t/
    # add ./lib to include path if blib/lib is not there (e.g. we're not
    # run from Build test or the like)
    push @INC, './lib' if not grep { $_ eq 'blib/lib' } @INC;
}

# Don't test Builtin XSD types - they're undocumented on purpose
# Don't test WSDL datatypes - they're undocumented on purpose.
@files = grep { $_ !~m{ (SOAP::WSDL::XSD::Typelib::Builtin::.+
    |SOAP::WSDL::OpMessage
    |SOAP::WSDL::Types
    |SOAP::WSDL::PortType
    |SOAP::WSDL::Port
    |SOAP::WSDL::Service
    |SOAP::WSDL::Binding
    |SOAP::WSDL::Message
    |SOAP::WSDL::TypeLookup
    |SOAP::WSDL::Base
    |SOAP::WSDL::Part
    |SOAP::WSDL::Operation
    |SOAP::WSDL::SOAP::[^:]+
    |SOAP::WSDL::XSD::Annotation
    |SOAP::WSDL::XSD::Attribute
    |SOAP::WSDL::XSD::AttributeGroup
    |SOAP::WSDL::XSD::SimpleType
    |SOAP::WSDL::XSD::Element
    |SOAP::WSDL::XSD::ComplexType
    |SOAP::WSDL::XSD::Builtin
    |SOAP::WSDL::XSD::Schema
    |SOAP::WSDL::XSD::Group
    |SOAP::WSDL::XSD::MaxLength
    |SOAP::WSDL::XSD::MinLength
    |SOAP::WSDL::XSD::MaxInclusive
    |SOAP::WSDL::XSD::MinInclusive
    |SOAP::WSDL::XSD::MinExclusive
    |SOAP::WSDL::XSD::MaxExclusive
    |SOAP::WSDL::XSD::Enumeration
    |SOAP::WSDL::XSD::Length
    |SOAP::WSDL::XSD::FractionDigits
    |SOAP::WSDL::XSD::Pattern
    |SOAP::WSDL::XSD::SimpleType
    |SOAP::WSDL::XSD::TotalDigits
    |SOAP::WSDL::XSD::WhiteSpace
    |SOAP::WSDL::XSD::Typelib::Attribute
    |SOAP::WSDL::XSD::Typelib::AttributeSet
    ) \z }xms; } all_modules( @dirs );

plan tests => scalar @files;
foreach (@files) {
    pod_coverage_ok( $_ ,
    {
        private => [
           qr/^_/,
           qr/^BUILD$/,
           qr/^START$/,
           qr/^STORABLE/,
           qr/^AUTOMETHOD$/,
           qr/^DEMOLISH$/
           ]
    });
}