Virt/Interface.pm

filter: Statementstmt 50.6% 38 / 75 Branchbran n/a Conditioncond 0.0% 0 / 6 MC/DCmcdc 0.0% 0 / 3 Subroutinesub 50.0% 9 / 18 Podpod 77.7% 7 / 9 totaltotal 48.6% 54 / 111 CC 7 SCAR 16.7
CC
7
Cov
47%
create
12.0
destroy
12.0
get_xml_desc
12.0
CRAP 5.3
« Virt/DomainCheckpoint.pm ↑ Summary Virt/Secret.pm »
1 ####################################################################
2 #
3 # This file was generated using XDR::Parse version v1.0.1
4 # and LibVirt version v12.9.0
5 #
6 # Don't edit this file, use the source template instead
7 #
8 # ANY CHANGES HERE WILL BE LOST !
9 #
10 ####################################################################
11  
12  
13 1 ▶use v5.26;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 1 ▶use experimental 'signatures';
Subroutine BEGIN: called CC=1 SCAR=0.0
16 1 ▶use Future::AsyncAwait;
Subroutine BEGIN: called CC=1 SCAR=0.0
17 1 ▶use Object::Pad;
Subroutine BEGIN: called CC=1 SCAR=0.0
18  
19 class Sys::Async::Virt::Interface v0.6.9;
20  
21 1 ▶use Carp qw(croak);
Subroutine BEGIN: called CC=1 SCAR=0.0
22 1 ▶use Log::Any qw($log);
Subroutine BEGIN: called CC=1 SCAR=0.0
23  
24 1 ▶use Protocol::Sys::Virt::Remote::XDR v12.9.0;
Subroutine BEGIN: called CC=1 SCAR=0.0
25 1 my $remote = 'Protocol::Sys::Virt::Remote::XDR';
26  
27 1 ▶use constant {
Subroutine BEGIN: called CC=1 SCAR=0.0
28 1 XML_INACTIVE => 1 << 0,
29 1 };
30  
31  
32 0 ▶field $_rpc_id :param :reader;
Subroutine rpc_id: not called CC=1 SCAR=2.6
Pod undocumented
33 0 ▶field $_client :param :reader;
Subroutine client: not called CC=1 SCAR=2.6
Pod undocumented
34  
35 0 ▶method name() {
Subroutine name: not called CC=1 SCAR=6.9
Pod documented
36 0 return $_rpc_id->{name};
37 1 }
38  
39 0 ▶method mac() {
Subroutine mac: not called CC=1 SCAR=6.9
Pod documented
40 0 return $_rpc_id->{mac};
41 1 }
42  
43 0 ▶method create($flags = 0) {
Subroutine create: not called CC=3 SCAR=24.8
Pod documented
44 0 ▶ return $_client->_call(
Condition0%0/2
$flags // 0
l!l
00
MC/DC0%0/1
$flags // 0
$flags
Truth table0%0/2
A
A= $flags
Aresult
11
00
45 $remote->PROC_INTERFACE_CREATE,
46 { iface => $_rpc_id, flags => $flags // 0 }, empty => 1 );
47 1 }
48  
49 0 ▶method destroy($flags = 0) {
Subroutine destroy: not called CC=3 SCAR=24.8
Pod documented
50 0 ▶ return $_client->_call(
Condition0%0/2
$flags // 0
l!l
00
MC/DC0%0/1
$flags // 0
$flags
Truth table0%0/2
A
A= $flags
Aresult
11
00
51 $remote->PROC_INTERFACE_DESTROY,
52 { iface => $_rpc_id, flags => $flags // 0 }, empty => 1 );
53 1 }
54  
55 0 ▶async method get_xml_desc($flags = 0) {
Subroutine get_xml_desc: not called CC=3 SCAR=24.8
Pod documented
56 0 ▶ return await $_client->_call(
Condition0%0/2
$flags // 0
l!l
00
MC/DC0%0/1
$flags // 0
$flags
Truth table0%0/2
A
A= $flags
Aresult
11
00
57 $remote->PROC_INTERFACE_GET_XML_DESC,
58 { iface => $_rpc_id, flags => $flags // 0 }, unwrap => 'xml' );
59 1 }
60  
61 0 ▶async method is_active() {
Subroutine is_active: not called CC=1 SCAR=6.9
Pod documented
62 0 return await $_client->_call(
63 $remote->PROC_INTERFACE_IS_ACTIVE,
64 { iface => $_rpc_id }, unwrap => 'active' );
65 1 }
66  
67 0 ▶method undefine() {
Subroutine undefine: not called CC=1 SCAR=6.9
Pod documented
68 0 return $_client->_call(
69 $remote->PROC_INTERFACE_UNDEFINE,
70 { iface => $_rpc_id }, empty => 1 );
71 1 }
72  
73  
74  
75 1 1;
76  
77  
78 __END__
« Virt/DomainCheckpoint.pm ↑ Summary Virt/Secret.pm »