File Coverage

blib/lib/MarpaX/ESLIF/URI/_generic/RecognizerInterface.pm
Criterion Covered Total %
statement 16 16 100.0
branch n/a
condition n/a
subroutine 12 12 100.0
pod 0 10 0.0
total 28 38 73.6


line stmt bran cond sub pod time code
1 5     5   39 use strict;
  5         15  
  5         201  
2 5     5   31 use warnings FATAL => 'all';
  5         13  
  5         1247  
3              
4             package MarpaX::ESLIF::URI::_generic::RecognizerInterface;
5              
6             our $VERSION = '0.007'; # VERSION
7              
8             our $AUTHORITY = 'cpan:JDDPAUSE'; # AUTHORITY
9              
10             # ABSTRACT: MarpaX::ESLIF's URI Recognizer Interface
11              
12             #
13             # This class is very internal and should not harm Pod coverage test
14             #
15              
16              
17             #
18             # Optimized constructor
19             #
20 32     32 0 138 sub new { bless \$_[1], $_[0] }
21             #
22             # Recognizer Interface required methods
23             #
24 32     32 0 196 sub read { 1 } # First read callback will be ok
25 32     32 0 129 sub isEof { 1 } # ../. and we will say this is EOF
26 32     32 0 16199 sub isCharacterStream { 1 } # MarpaX::ESLIF will validate the input
27       32 0   sub encoding { } # Let MarpaX::ESLIF guess
28 32     32 0 135 sub data { "${$_[0]}" } # Forced stringified input
  32         212  
29 32     32 0 174 sub isWithDisableThreshold { 0 } # Disable threshold warning ?
30 32     32 0 147 sub isWithExhaustion { 0 } # Exhaustion event ?
31 32     32 0 135 sub isWithNewline { 0 } # Newline count ?
32 32     32 0 134 sub isWithTrack { 0 } # Absolute position tracking ?
33              
34             1;
35              
36             __END__
37              
38             =pod
39              
40             =encoding UTF-8
41              
42             =head1 NAME
43              
44             MarpaX::ESLIF::URI::_generic::RecognizerInterface - MarpaX::ESLIF's URI Recognizer Interface
45              
46             =head1 VERSION
47              
48             version 0.007
49              
50             =for Pod::Coverage *EVERYTHING*
51              
52             =head1 AUTHOR
53              
54             Jean-Damien Durand <jeandamiendurand@free.fr>
55              
56             =head1 COPYRIGHT AND LICENSE
57              
58             This software is copyright (c) 2017 by Jean-Damien Durand.
59              
60             This is free software; you can redistribute it and/or modify it under
61             the same terms as the Perl 5 programming language system itself.
62              
63             =cut