General.pm untested

filter: Statementstmt 0.0% 0 / 17 Subroutinesub 0.0% 0 / 3 totaltotal 0.0% 0 / 20 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 # PODNAME: General.pm
2 # ABSTRACT: NetworkManager properties general class
3  
4 use v5.37.9;
5 use experimental qw( class builtin try );
6  
7 package NetworkManager::General;
8 class NetworkManager::General {
9  
10 use Path::Tiny qw();
11  
12 field $path = Path::Tiny -> new( '/etc/NetworkManager/system-connections/' );
13 # Configuration directory path
14  
15 field $ethernet = 'Wired connection 1';
16 # Network interface profile name
17  
18 field $extension = 'nmconnection';
19 # Network interface profile file extension
20  
21 method path ( ) { $path; }
22  
23  
24 method ethernet ( ) { $ethernet; }
25  
26  
27 method extension ( ) { $extension; }
28  
29  
30 }
31  
32 __END__