Virt/DomainSnapshot.pm

filter: Statementstmt 39.6% 42 / 106 Branchbran n/a Conditioncond 0.0% 0 / 18 MC/DCmcdc 0.0% 0 / 9 Subroutinesub 40.9% 9 / 22 Podpod 84.6% 11 / 13 totaltotal 36.9% 62 / 168 CC 19 SCAR 21.4
CC
19
Cov
34%
delete
12.0
get_parent
12.0
get_xml_desc
12.0
CRAP 8.5
« Virt/Stream.pm ↑ Summary Virt/StorageVol.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::DomainSnapshot 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_SECURE => (1 << 0),
29 LIST_ROOTS => (1 << 0),
30 LIST_DESCENDANTS => (1 << 0),
31 LIST_LEAVES => (1 << 2),
32 LIST_NO_LEAVES => (1 << 3),
33 LIST_METADATA => (1 << 1),
34 LIST_NO_METADATA => (1 << 4),
35 LIST_INACTIVE => (1 << 5),
36 LIST_ACTIVE => (1 << 6),
37 LIST_DISK_ONLY => (1 << 7),
38 LIST_INTERNAL => (1 << 8),
39 LIST_EXTERNAL => (1 << 9),
40 LIST_TOPOLOGICAL => (1 << 10),
41 REVERT_RUNNING => 1 << 0,
42 REVERT_PAUSED => 1 << 1,
43 REVERT_FORCE => 1 << 2,
44 REVERT_RESET_NVRAM => 1 << 3,
45 DELETE_CHILDREN => (1 << 0),
46 DELETE_METADATA_ONLY => (1 << 1),
47 DELETE_CHILDREN_ONLY => (1 << 2),
48 1 };
49  
50  
51 0 ▶field $_rpc_id :param :reader;
Subroutine rpc_id: not called CC=1 SCAR=2.6
Pod undocumented
52 0 ▶field $_client :param :reader;
Subroutine client: not called CC=1 SCAR=2.6
Pod undocumented
53  
54 0 ▶method domain() {
Subroutine domain: not called CC=1 SCAR=6.9
Pod documented
55 0 return $_client->_domain_instance( $_rpc_id->{dom} );
56 1 }
57  
58 0 ▶method name() {
Subroutine name: not called CC=1 SCAR=6.9
Pod documented
59 0 return $_rpc_id->{name};
60 1 }
61  
62  
63 0 ▶method delete($flags = 0) {
Subroutine delete: not called CC=3 SCAR=24.8
Pod documented
64 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
65 $remote->PROC_DOMAIN_SNAPSHOT_DELETE,
66 { snap => $_rpc_id, flags => $flags // 0 }, empty => 1 );
67 1 }
68  
69 0 ▶async method get_parent($flags = 0) {
Subroutine get_parent: not called CC=3 SCAR=24.8
Pod documented
70 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
71 $remote->PROC_DOMAIN_SNAPSHOT_GET_PARENT,
72 { snap => $_rpc_id, flags => $flags // 0 }, unwrap => 'snap' );
73 1 }
74  
75 0 ▶async method get_xml_desc($flags = 0) {
Subroutine get_xml_desc: not called CC=3 SCAR=24.8
Pod documented
76 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
77 $remote->PROC_DOMAIN_SNAPSHOT_GET_XML_DESC,
78 { snap => $_rpc_id, flags => $flags // 0 }, unwrap => 'xml' );
79 1 }
80  
81 0 ▶async method has_metadata($flags = 0) {
Subroutine has_metadata: not called CC=3 SCAR=24.8
Pod documented
82 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
83 $remote->PROC_DOMAIN_SNAPSHOT_HAS_METADATA,
84 { snap => $_rpc_id, flags => $flags // 0 }, unwrap => 'metadata' );
85 1 }
86  
87 0 ▶async method is_current($flags = 0) {
Subroutine is_current: not called CC=3 SCAR=24.8
Pod documented
88 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
89 $remote->PROC_DOMAIN_SNAPSHOT_IS_CURRENT,
90 { snap => $_rpc_id, flags => $flags // 0 }, unwrap => 'current' );
91 1 }
92  
93 0 ▶async method list_all_children($flags = 0) {
Subroutine list_all_children: not called CC=3 SCAR=24.8
Pod documented
94 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
95 $remote->PROC_DOMAIN_SNAPSHOT_LIST_ALL_CHILDREN,
96 { snapshot => $_rpc_id, need_results => $remote->DOMAIN_SNAPSHOT_LIST_MAX, flags => $flags // 0 }, unwrap => 'snapshots' );
97 1 }
98  
99 0 ▶async method list_children_names($flags = 0) {
Subroutine list_children_names: not called CC=3 SCAR=24.8
Pod documented
100 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
101 $remote->PROC_DOMAIN_SNAPSHOT_LIST_CHILDREN_NAMES,
102 { snap => $_rpc_id, maxnames => $remote->DOMAIN_SNAPSHOT_LIST_MAX, flags => $flags // 0 }, unwrap => 'names' );
103 1 }
104  
105 0 ▶async method num_children($flags = 0) {
Subroutine num_children: not called CC=3 SCAR=24.8
Pod documented
106 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
107 $remote->PROC_DOMAIN_SNAPSHOT_NUM_CHILDREN,
108 { snap => $_rpc_id, flags => $flags // 0 }, unwrap => 'num' );
109 1 }
110  
111 0 ▶method revert_to_snapshot($flags = 0) {
Subroutine revert_to_snapshot: not called CC=3 SCAR=24.8
Pod documented
112 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
113 $remote->PROC_DOMAIN_REVERT_TO_SNAPSHOT,
114 { snap => $_rpc_id, flags => $flags // 0 }, empty => 1 );
115 1 }
116  
117  
118  
119 1 1;
120  
121  
122 __END__
« Virt/Stream.pm ↑ Summary Virt/StorageVol.pm »