DBus/Path.pm

filter: Statementstmt 86.6% 13 / 15 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 66.6% 4 / 6 Podpod 0.0% 0 / 2 totaltotal 65.3% 17 / 26 CC 2 SCAR 9.4
CC
2
Cov
76%
system_message_bus
6.0
login_session_message_bus
2.0
BEGIN
1.0
CRAP 2.6
« DBus/X/Rejected.pm ↑ Summary DBus/Authn/Mechanism/DBUS_COOKIE_SHA1.pm »
1 package Protocol::DBus::Path;
2  
3 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 4 ▶use Protocol::DBus::Address ();
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 4 ▶use constant _DEFAULT_SYSTEM_MESSAGE_BUS => 'unix:path=/var/run/dbus/system_bus_socket';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 # NB: If this returns “autolaunch:”, then the system should use
11 # platform-specific methods of locating a running D-Bus session server,
12 # or starting one if a running instance cannot be found.
13 sub login_session_message_bus {
14 0 ▶ return Protocol::DBus::Address::parse($ENV{'DBUS_SESSION_BUS_ADDRESS'});
Subroutine login_session_message_bus: not called CC=1 SCAR=6.9
Pod undocumented
15 }
16  
17 sub system_message_bus {
18 0 ▶ return Protocol::DBus::Address::parse( $ENV{'DBUS_SYSTEM_BUS_ADDRESS'} || _DEFAULT_SYSTEM_MESSAGE_BUS() );
Subroutine system_message_bus: not called CC=2 SCAR=17.9
Pod undocumented
Condition0%0/2
$ENV{'DBUS_SYSTEM_BUS_ADDRESS'} || 'unix:path=/var/run/dbus/system_bus_socket'
l!l
00
MC/DC0%0/1
$ENV{'DBUS_SYSTEM_BUS_ADDRESS'} || 'unix:path=/var/run/dbus/system_bus_socket'
$ENV{'DBUS_SYSTEM_BUS_ADDRESS'}
Truth table0%0/2
A
A= $ENV{'DBUS_SYSTEM_BUS_ADDRESS'}
Aresult
11
00
19 }
20  
21 4 1;
« DBus/X/Rejected.pm ↑ Summary DBus/Authn/Mechanism/DBUS_COOKIE_SHA1.pm »