ZoneParse/Parser/NetDNSZoneFileFast.pm untested

filter: Statementstmt 0.0% 0 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 29 CC 1 SCAR 6.9
CC
1
Cov
0%
parse
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Net::DNS::ZoneParse::Parser::NetDNSZoneFileFast;
2  
3 use 5.008000;
4 use strict;
5 use warnings;
6 use vars qw($VERSION);
7  
8 use Net::DNS;
9 use Net::DNS::ZoneFile::Fast;
10  
11 $VERSION = 0.10;
12  
13 =pod
14  
15 =head1 NAME
16  
17 Net::DNS::ZoneParse::Parser::NetDNSZoneFileFast - Glue for Net::DNS::ZoneParse
18 to use Net::DNS::ZoneFile::Fast.
19  
20 =head1 DESCRIPTION
21  
22 NetDNSZoneFileFast uses Net::DNS::ZoneFile::Fast as parsing engine. This provides an
23 Interface to a fast parser with support for most directives and the most
24 common RRs; though not all are supported.
25  
26 =head2 EXPORT
27  
28 =head3 parse
29  
30 $rr = Net::DNS::ZoneParse::Parser::NetDNSZoneFileFast->parse($param)
31  
32 This will be called by Net::DNS::ZoneParse
33  
34 =cut
35  
36 sub parse {
37 my ($self, $param) = @_;
38 return Net::DNS::ZoneFile::Fast::parse(
39 fh => $param->{fh},
40 origin => $param->{origin},
41 );
42 }
43  
44  
45 =pod
46  
47 =head1 SEE ALSO
48  
49 Net::DNS::ZoneParse
50 Net::DNS::ZoneFile::Fast
51  
52 =head1 AUTHOR
53  
54 Benjamin Tietz E<lt>benjamin@micronet24.deE<gt>
55  
56 =head1 COPYRIGHT
57  
58 Copyright (C) 2010 by Benjamin Tietz
59  
60 This library is free software; you can redistribute it and/or modify
61 it under the same terms as Perl itself, either Perl version 5.10.0 or,
62 at your option, any later version of Perl 5 you may have available.
63  
64 =cut
65  
66 1;