File Coverage

blib/lib/Perl/PrereqScanner/Lite/Constants.pm
Criterion Covered Total %
statement 18 18 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod n/a
total 24 24 100.0


line stmt bran cond sub pod time code
1             package Perl::PrereqScanner::Lite::Constants;
2 11     11   67 use strict;
  11         23  
  11         307  
3 11     11   51 use warnings;
  11         18  
  11         260  
4 11     11   372 use utf8;
  11         31  
  11         65  
5 11     11   273 use Compiler::Lexer::Constants;
  11         28  
  11         286  
6              
7 11     11   2603 use parent qw(Exporter);
  11         2500  
  11         46  
8              
9             our @EXPORT = qw(
10             REQUIRE_DECL REQUIRED_NAME NAMESPACE_RESOLVER NAMESPACE
11             SEMI_COLON USE_DECL USED_NAME REG_LIST REG_EXP LEFT_PAREN
12             RIGHT_PAREN STRING RAW_STRING VERSION_STRING INT DOUBLE KEY
13             METHOD WHITESPACE COMMENT LEFT_BRACE RIGHT_BRACE
14             LEFT_BRACKET RIGHT_BRACKET BUILTIN_FUNC
15             IF_STMT COMMA
16             );
17              
18             use constant {
19 11         2413 REQUIRE_DECL => Compiler::Lexer::TokenType::T_RequireDecl,
20             REQUIRED_NAME => Compiler::Lexer::TokenType::T_RequiredName,
21             NAMESPACE_RESOLVER => Compiler::Lexer::TokenType::T_NamespaceResolver,
22             NAMESPACE => Compiler::Lexer::TokenType::T_Namespace,
23             SEMI_COLON => Compiler::Lexer::TokenType::T_SemiColon,
24             USE_DECL => Compiler::Lexer::TokenType::T_UseDecl,
25             USED_NAME => Compiler::Lexer::TokenType::T_UsedName,
26             REG_LIST => Compiler::Lexer::TokenType::T_RegList,
27             REG_EXP => Compiler::Lexer::TokenType::T_RegExp,
28             STRING => Compiler::Lexer::TokenType::T_String,
29             RAW_STRING => Compiler::Lexer::TokenType::T_RawString,
30             VERSION_STRING => Compiler::Lexer::TokenType::T_VersionString,
31             INT => Compiler::Lexer::TokenType::T_Int,
32             DOUBLE => Compiler::Lexer::TokenType::T_Double,
33             KEY => Compiler::Lexer::TokenType::T_Key,
34             METHOD => Compiler::Lexer::TokenType::T_Method,
35             WHITESPACE => Compiler::Lexer::TokenType::T_WhiteSpace,
36             COMMENT => Compiler::Lexer::TokenType::T_Comment,
37             IF_STMT => Compiler::Lexer::TokenType::T_IfStmt,
38             COMMA => Compiler::Lexer::TokenType::T_Comma,
39              
40             LEFT_PAREN => Compiler::Lexer::TokenType::T_LeftParenthesis,
41             RIGHT_PAREN => Compiler::Lexer::TokenType::T_RightParenthesis,
42             LEFT_BRACE => Compiler::Lexer::TokenType::T_LeftBrace,
43             RIGHT_BRACE => Compiler::Lexer::TokenType::T_RightBrace,
44             LEFT_BRACKET => Compiler::Lexer::TokenType::T_LeftBracket,
45             RIGHT_BRACKET => Compiler::Lexer::TokenType::T_RightBracket,
46              
47             BUILTIN_FUNC => Compiler::Lexer::TokenType::T_BuiltinFunc,
48 11     11   1774 };
  11         24  
49              
50             1;
51