DBus/Path.pm untested

filter: Statementstmt 0.0% 0 / 11 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 21 SCAR 6.9
CC
1
Cov
0%
login_session_message_bus
2.0
system_message_bus
2.0
BEGIN
2.0
CRAP 2.0
1 package Protocol::DBus::Path;
2  
3 use strict;
4 use warnings;
5  
6 use constant _DEFAULT_SYSTEM_MESSAGE_BUS => 'unix:path=/var/run/dbus/system_bus_socket';
7  
8 # NB: If this returns “autolaunch:”, then the system should use
9 # platform-specific methods of locating a running D-Bus session server,
10 # or starting one if a running instance cannot be found.
11 sub login_session_message_bus { $ENV{'DBUS_SESSION_BUS_ADDRESS'} }
12  
13 sub system_message_bus {
14 $ENV{'DBUS_SYSTEM_BUS_ADDRESS'} || _DEFAULT_SYSTEM_MESSAGE_BUS();
15 }
16  
17 1;