Virt/NwFilterBinding.pm

filter: Statementstmt 59.2% 32 / 54 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 57.1% 8 / 14 Podpod 66.6% 4 / 6 totaltotal 57.1% 44 / 77 CC 3 SCAR 11.9
CC
3
Cov
57%
get_xml_desc
12.0
name
2.0
port
2.0
CRAP 3.3
« Virt/Secret.pm ↑ Summary Virt/NwFilter.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::NwFilterBinding 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  
28  
29 0 ▶field $_rpc_id :param :reader;
Subroutine rpc_id: not called CC=1 SCAR=2.6
Pod undocumented
30 0 ▶field $_client :param :reader;
Subroutine client: not called CC=1 SCAR=2.6
Pod undocumented
31  
32 0 ▶method name() {
Subroutine name: not called CC=1 SCAR=6.9
Pod documented
33 0 return $_rpc_id->{name};
34 1 }
35  
36 0 ▶method port() {
Subroutine port: not called CC=1 SCAR=6.9
Pod documented
37 0 return $_client->_network_port_instance( $_rpc_id->{portdev} );
38 1 }
39  
40 0 ▶method delete() {
Subroutine delete: not called CC=1 SCAR=6.9
Pod documented
41 0 return $_client->_call(
42 $remote->PROC_NWFILTER_BINDING_DELETE,
43 { nwfilter => $_rpc_id }, empty => 1 );
44 1 }
45  
46 0 ▶async method get_xml_desc($flags = 0) {
Subroutine get_xml_desc: not called CC=3 SCAR=24.8
Pod documented
47 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
48 $remote->PROC_NWFILTER_BINDING_GET_XML_DESC,
49 { nwfilter => $_rpc_id, flags => $flags // 0 }, unwrap => 'xml' );
50 1 }
51  
52  
53  
54 1 1;
55  
56 __END__
« Virt/Secret.pm ↑ Summary Virt/NwFilter.pm »