File Coverage

blib/lib/Dirbuster/Parser/Session.pm
Criterion Covered Total %
statement 4 6 66.6
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 6 8 75.0


line stmt bran cond sub pod time code
1             # $Id: Session.pm 18 2008-05-05 23:55:18Z jabra $
2             package Dirbuster::Parser::Session;
3             {
4             our $VERSION = '0.01';
5             $VERSION = eval $VERSION;
6              
7 2     2   14 use Object::InsideOut;
  2         4  
  2         13  
8 2     2   1367 use XML::LibXML;
  0            
  0            
9             use Dirbuster::Parser::ScanDetails;
10              
11             # my @title : Field : Arg(title) : All(title);
12             # my @web : Field : Arg(web) : All(web);
13             # my @version : Field : Arg(version) : All(version);
14             my @scandetails : Field : Arg(scandetails) : Get(scandetails) :
15             Type(Dirbuster::Parser::ScanDetails);
16              
17             sub parse {
18             my ( $self, $parser, $doc ) = @_;
19              
20             foreach my $Dirbusterscan ( $doc->getElementsByTagName('DirBusterResults') ) {
21             return Dirbuster::Parser::Session->new(
22             scandetails => Dirbuster::Parser::ScanDetails->parse( $parser, $doc ),
23             );
24             }
25             }
26             }
27             1;