File Coverage

blib/lib/Config/Model/models/Sshd/MatchCondition.pl
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             #
2             # This file is part of Config-Model-OpenSsh
3             #
4             # This software is Copyright (c) 2008-2022 by Dominique Dumont.
5             #
6             # This is free software, licensed under:
7             #
8             # The GNU Lesser General Public License, Version 2.1, February 1999
9             #
10 2     2   2728 use strict;
  2         4  
  2         59  
11 2     2   11 use warnings;
  2         5  
  2         167  
12              
13             return [
14             {
15             'author' => [
16             'Dominique Dumont'
17             ],
18             'class_description' => 'Conidtion to apply to identify matched items inside
19             a sshd_config match block.',
20             'copyright' => [
21             '2009-2011 Dominique Dumont'
22             ],
23             'element' => [
24             'User',
25             {
26             'description' => 'Define the User criteria of a conditional block. The value of this field is a pattern that is tested against user name.',
27             'type' => 'leaf',
28             'value_type' => 'uniline'
29             },
30             'Group',
31             {
32             'description' => 'Define the Group criteria of a conditional block. The value of this field is a pattern that is tested against group name.',
33             'type' => 'leaf',
34             'value_type' => 'uniline'
35             },
36             'Host',
37             {
38             'description' => 'Define the Host criteria of a conditional block. The value of this field is a pattern that is tested against host name.',
39             'type' => 'leaf',
40             'value_type' => 'uniline'
41             },
42             'Address',
43             {
44             'description' => 'Define the Address criteria of a conditional block. The value of this field is a pattern that is tested against the address of the incoming connection.',
45             'type' => 'leaf',
46             'value_type' => 'uniline'
47             }
48             ],
49             'license' => 'LGPL2',
50             'name' => 'Sshd::MatchCondition'
51             }
52             ]
53             ;
54