Moose/Instrument/RS_ZNL.pm

filter: Statementstmt 70.5% 12 / 17 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 2 totaltotal 57.6% 15 / 26 CC 2 SCAR 10.4
CC
2
Cov
63%
format_border
6.0
format_border_query
2.0
BEGIN
1.0
CRAP 2.8
« Moose/Instrument/SCPIBlock.pm ↑ Summary Moose/Instrument/VNASweep.pm »
1 package Lab::Moose::Instrument::RS_ZNL;
2 1 $Lab::Moose::Instrument::RS_ZNL::VERSION = '3.931';
3 #ABSTRACT: Rohde & Schwarz ZNL Vector Network Analyzer
4  
5 1 ▶use v5.20;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use Carp 'croak';
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 extends 'Lab::Moose::Instrument::RS_ZVA';
10  
11 # does not support USBTMC
12  
13  
14  
15 # The ZNL only supports SWAP byte order. It does not have a FORMAT:BORDER command.
16 0 ▶sub format_border_query() {
Subroutine format_border_query: not called CC=1 SCAR=6.9
Pod undocumented
17 0 return 'SWAP';
18 }
19  
20 0 ▶sub format_border {
Subroutine format_border: not called CC=2 SCAR=17.9
Pod undocumented
21 0 my ( $self, $value, %args ) = validated_setter( \@_ );
22  
23 0 ▶ if ( $value ne 'SWAP' ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($value ne "SWAP") 0 0 0
24 0 croak 'The R&S ZNL only suppots SWAP byte order.';
25 }
26 0 return $self->cached_format_border($value);
27 }
28  
29 1 __PACKAGE__->meta->make_immutable();
30  
31 1 1;
32  
33 __END__
« Moose/Instrument/SCPIBlock.pm ↑ Summary Moose/Instrument/VNASweep.pm »