lib/HTTP/OAI.pm

filter: Statementstmt 98.4% 125 / 127 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 39 / 39 Podpod n/a totaltotal 97.6% 166 / 170 CC 1 SCAR 0.0
CC
1
Cov
97%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/HTTP/OAI/SAX/Trace.pm ↑ Summary
1 package HTTP::OAI;
2  
3 11 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 11 our $VERSION = '4.13';
6  
7 11 ▶use constant OAI_NS => 'http://www.openarchives.org/OAI/2.0/';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 # perlcore
10 11 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 11 ▶use Encode;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 # http related stuff
14 11 ▶use URI;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 11 ▶use HTTP::Headers;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 11 ▶use HTTP::Request;
Subroutine BEGIN: called CC=1 SCAR=0.0
17 11 ▶use HTTP::Response;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 11 require LWP::UserAgent;
19 11 require LWP::MemberMixin;
20  
21 # xml related stuff
22 11 ▶use XML::SAX;
Subroutine BEGIN: called CC=1 SCAR=0.0
23 11 ▶use XML::SAX::ParserFactory;
Subroutine BEGIN: called CC=1 SCAR=0.0
24 11 ▶use XML::LibXML;
Subroutine BEGIN: called CC=1 SCAR=0.0
25 11 ▶use XML::LibXML::SAX;
Subroutine BEGIN: called CC=1 SCAR=0.0
26 11 ▶use XML::LibXML::SAX::Parser;
Subroutine BEGIN: called CC=1 SCAR=0.0
27 11 ▶use XML::LibXML::SAX::Builder;
Subroutine BEGIN: called CC=1 SCAR=0.0
28  
29 11 ▶use HTTP::OAI::SAX::Driver;
Subroutine BEGIN: called CC=1 SCAR=0.0
30 11 ▶use HTTP::OAI::SAX::Text;
Subroutine BEGIN: called CC=1 SCAR=0.0
31  
32 # debug
33 11 ▶use HTTP::OAI::Debug;
Subroutine BEGIN: called CC=1 SCAR=0.0
34 11 ▶use HTTP::OAI::SAX::Trace;
Subroutine BEGIN: called CC=1 SCAR=0.0
35  
36 # generic superclasses
37 11 ▶use HTTP::OAI::SAX::Base;
Subroutine BEGIN: called CC=1 SCAR=0.0
38 11 ▶use HTTP::OAI::MemberMixin;
Subroutine BEGIN: called CC=1 SCAR=0.0
39 11 ▶use HTTP::OAI::Verb;
Subroutine BEGIN: called CC=1 SCAR=0.0
40 11 ▶use HTTP::OAI::PartialList;
Subroutine BEGIN: called CC=1 SCAR=0.0
41  
42 # utility classes
43 11 ▶use HTTP::OAI::Response;
Subroutine BEGIN: called CC=1 SCAR=0.0
44  
45 # oai data objects
46 11 ▶use HTTP::OAI::Metadata; # Super class of all data objects
Subroutine BEGIN: called CC=1 SCAR=0.0
47 11 ▶use HTTP::OAI::Error;
Subroutine BEGIN: called CC=1 SCAR=0.0
48 11 ▶use HTTP::OAI::Header;
Subroutine BEGIN: called CC=1 SCAR=0.0
49 11 ▶use HTTP::OAI::MetadataFormat;
Subroutine BEGIN: called CC=1 SCAR=0.0
50 11 ▶use HTTP::OAI::Record;
Subroutine BEGIN: called CC=1 SCAR=0.0
51 11 ▶use HTTP::OAI::ResumptionToken;
Subroutine BEGIN: called CC=1 SCAR=0.0
52 11 ▶use HTTP::OAI::Set;
Subroutine BEGIN: called CC=1 SCAR=0.0
53  
54 # oai verbs
55 11 ▶use HTTP::OAI::GetRecord;
Subroutine BEGIN: called CC=1 SCAR=0.0
56 11 ▶use HTTP::OAI::Identify;
Subroutine BEGIN: called CC=1 SCAR=0.0
57 11 ▶use HTTP::OAI::ListIdentifiers;
Subroutine BEGIN: called CC=1 SCAR=0.0
58 11 ▶use HTTP::OAI::ListMetadataFormats;
Subroutine BEGIN: called CC=1 SCAR=0.0
59 11 ▶use HTTP::OAI::ListRecords;
Subroutine BEGIN: called CC=1 SCAR=0.0
60 11 ▶use HTTP::OAI::ListSets;
Subroutine BEGIN: called CC=1 SCAR=0.0
61  
62 # oai agents
63 11 ▶use HTTP::OAI::UserAgent;
Subroutine BEGIN: called CC=1 SCAR=0.0
64 11 ▶use HTTP::OAI::Harvester;
Subroutine BEGIN: called CC=1 SCAR=0.0
65 11 ▶use HTTP::OAI::Repository;
Subroutine BEGIN: called CC=1 SCAR=0.0
66  
67 11 $HTTP::OAI::Harvester::VERSION = $VERSION;
68  
69 11 ▶if( $ENV{HTTP_OAI_TRACE} )
Branch: 1 branch
BranchTrueFalseTotal
if ($ENV{"HTTP_OAI_TRACE"}) 0 11 11
70 {
71 0 HTTP::OAI::Debug::level( '+trace' );
72 }
73 11 ▶if( $ENV{HTTP_OAI_SAX_TRACE} )
Branch: 1 branch
BranchTrueFalseTotal
if ($ENV{"HTTP_OAI_SAX_TRACE"}) 0 11 11
74 {
75 0 HTTP::OAI::Debug::level( '+sax' );
76 }
77  
78 11 our %VERSIONS = (
79 'http://www.openarchives.org/oai/1.0/oai_getrecord' => '1.0',
80 'http://www.openarchives.org/oai/1.0/oai_identify' => '1.0',
81 'http://www.openarchives.org/oai/1.0/oai_listidentifiers' => '1.0',
82 'http://www.openarchives.org/oai/1.0/oai_listmetadataformats' => '1.0',
83 'http://www.openarchives.org/oai/1.0/oai_listrecords' => '1.0',
84 'http://www.openarchives.org/oai/1.0/oai_listsets' => '1.0',
85 'http://www.openarchives.org/oai/1.1/oai_getrecord' => '1.1',
86 'http://www.openarchives.org/oai/1.1/oai_identify' => '1.1',
87 'http://www.openarchives.org/oai/1.1/oai_listidentifiers' => '1.1',
88 'http://www.openarchives.org/oai/1.1/oai_listmetadataformats' => '1.1',
89 'http://www.openarchives.org/oai/1.1/oai_listrecords' => '1.1',
90 'http://www.openarchives.org/oai/1.1/oai_listsets' => '1.1',
91 'http://www.openarchives.org/oai/2.0/' => '2.0',
92 'http://www.openarchives.org/oai/2.0/static-repository' => '2.0s',
93 );
94  
95 11 1;
96  
97 __END__
« lib/HTTP/OAI/SAX/Trace.pm ↑ Summary