File Coverage

blib/lib/STIX/Common/Enum.pm
Criterion Covered Total %
statement 41 41 100.0
branch n/a
condition n/a
subroutine 14 14 100.0
pod n/a
total 55 55 100.0


line stmt bran cond sub pod time code
1             package STIX::Common::Enum;
2              
3 25     25   476 use 5.010001;
  25         96  
4 25     25   233 use strict;
  25         110  
  25         798  
5 25     25   134 use warnings;
  25         62  
  25         1212  
6 25     25   132 use utf8;
  25         44  
  25         145  
7              
8 25     25   1231 use constant ENCRYPTION_ALGORITHM => ('AES-256-GCM', 'ChaCha20-Poly1305', 'mime-type-indicated');
  25         75  
  25         2619  
9              
10 25     25   182 use constant EXTENSION_TYPE => ('new-sdo', 'new-sco', 'new-sro', 'property-extension', 'toplevel-property-extension');
  25         58  
  25         1987  
11              
12 25         1935 use constant NETWORK_SOCKET_ADDRESS_FAMILY =>
13 25     25   182 ('AF_UNSPEC', 'AF_INET', 'AF_IPX', 'AF_APPLETALK', 'AF_NETBIOS', 'AF_INET6', 'AF_IRDA', 'AF_BTH');
  25         52  
14              
15 25     25   177 use constant NETWORK_SOCKET_TYPE => ('SOCK_STREAM', 'AF_ISOCK_DGRAMNET', 'SOCK_RAW', 'SOCK_RDM', 'SOCK_SEQPACKET');
  25         67  
  25         2012  
16              
17 25     25   164 use constant OPINION => ('strongly-disagree', 'disagree', 'neutral', 'agree', 'strongly-agree');
  25         71  
  25         1644  
18              
19 25     25   139 use constant WINDOWS_INTEGRITY_LEVEL => ('low', 'medium', 'high', 'system');
  25         53  
  25         2275  
20              
21 25         1890 use constant WINDOWS_REGISTRY_DATATYPE => (
22             'REG_NONE', 'REG_SZ',
23             'REG_EXPAND_SZ', 'REG_BINARY',
24             'REG_DWORD', 'REG_DWORD_BIG_ENDIAN',
25             'REG_DWORD_LITTLE_ENDIAN', 'REG_LINK',
26             'REG_MULTI_SZ', 'REG_RESOURCE_LIST',
27             'REG_FULL_RESOURCE_DESCRIPTION', 'REG_RESOURCE_REQUIREMENTS_LIST',
28             'REG_QWORD', 'REG_INVALID_TYPE'
29 25     25   156 );
  25         45  
30              
31 25         1689 use constant WINDOWS_SERVICE_TYPE => (
32             'SERVICE_KERNEL_DRIVER', 'SERVICE_FILE_SYSTEM_DRIVER',
33             'SERVICE_WIN32_OWN_PROCESS', 'SERVICE_WIN32_SHARE_PROCESS'
34 25     25   152 );
  25         53  
35              
36 25         1806 use constant WINDOWS_SERVICE_START_TYPE =>
37 25     25   134 ('SERVICE_AUTO_START', 'SERVICE_BOOT_START', 'SERVICE_DEMAND_START', 'SERVICE_DISABLED', 'SERVICE_SYSTEM_ALERT');
  25         68  
38              
39 25         2075 use constant WINDOWS_SERVICE_STATUS => (
40             'SERVICE_CONTINUE_PENDING', 'SERVICE_PAUSE_PENDING', 'SERVICE_PAUSED', 'SERVICE_RUNNING',
41             'SERVICE_START_PENDING', 'SERVICE_STOP_PENDING', 'SERVICE_STOPPED'
42 25     25   167 );
  25         96  
43              
44             1;
45              
46             =encoding utf-8
47              
48             =head1 NAME
49              
50             STIX::Common::Enum - ENUM for STIX Objects
51              
52             =head1 DESCRIPTION
53              
54             L provide a listing of common and industry accepted
55             terms as a guide to the user.
56              
57             =head2 CONSTANTS
58              
59             =over
60              
61             =item ENCRYPTION_ALGORITHM
62              
63             =item EXTENSION_TYPE
64              
65             =item NETWORK_SOCKET_ADDRESS_FAMILY
66              
67             =item NETWORK_SOCKET_TYPE
68              
69             =item OPINION
70              
71             =item WINDOWS_INTEGRITY_LEVEL
72              
73             =item WINDOWS_REGISTRY_DATATYPE
74              
75             =item WINDOWS_SERVICE_START_TYPE
76              
77             =item WINDOWS_SERVICE_STATUS
78              
79             =item WINDOWS_SERVICE_TYPE
80              
81             =back
82              
83              
84             =head1 SUPPORT
85              
86             =head2 Bugs / Feature Requests
87              
88             Please report any bugs or feature requests through the issue tracker
89             at L.
90             You will be notified automatically of any progress on your issue.
91              
92             =head2 Source Code
93              
94             This is open source software. The code repository is available for
95             public review and contribution under the terms of the license.
96              
97             L
98              
99             git clone https://github.com/giterlizzi/perl-STIX.git
100              
101              
102             =head1 AUTHOR
103              
104             =over 4
105              
106             =item * Giuseppe Di Terlizzi
107              
108             =back
109              
110              
111             =head1 LICENSE AND COPYRIGHT
112              
113             This software is copyright (c) 2024 by Giuseppe Di Terlizzi.
114              
115             This is free software; you can redistribute it and/or modify it under
116             the same terms as the Perl 5 programming language system itself.
117              
118             =cut