Moose/Instrument/SCPI/Sense/Power.pm

filter: Statementstmt 82.1% 23 / 28 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 77.7% 7 / 9 Podpod 100% 2 / 2 totaltotal 82.0% 32 / 39 CC 1 SCAR 2.0
CC
1
Cov
82%
sense_power_rf_attenuation_query
2.0
sense_power_rf_attenuation
2.0
BEGIN
1.0
CRAP 1.2
« Moose/Instrument/SCPI/Display/Window.pm ↑ Summary Moose/Instrument/SCPI/Initiate.pm »
1 package Lab::Moose::Instrument::SCPI::Sense::Power;
2 #ABSTRACT: Role for the SCPI SENSe:POWer subsystem
3 1 $Lab::Moose::Instrument::SCPI::Sense::Power::VERSION = '3.931';
4 1 ▶use v5.20;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use Lab::Moose::Instrument::Cache;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 use Lab::Moose::Instrument
9 1 ▶ qw/validated_getter validated_setter/;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use MooseX::Params::Validate;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15  
16 1 cache sense_power_rf_attenuation => ( getter => 'sense_power_rf_attenuation_query' );
17  
18 0 ▶sub sense_power_rf_attenuation_query {
Subroutine sense_power_rf_attenuation_query: not called CC=1 SCAR=6.9
Pod documented
19 0 my ( $self, %args ) = validated_getter( \@_ );
20  
21 0 return $self->cached_sense_power_rf_attenuation(
22 $self->query( command => "SENS:POW:RF:ATT?", %args ) );
23 }
24  
25 0 ▶sub sense_power_rf_attenuation {
Subroutine sense_power_rf_attenuation: not called CC=1 SCAR=6.9
Pod documented
26 0 my ( $self, $value, %args ) = validated_setter( \@_ );
27  
28 0 $self->write( command => "SENS:POW:RF:ATT $value", %args );
29 0 $self->cached_sense_power_rf_attenuation($value);
30 }
31  
32 1 1;
33  
34 __END__
« Moose/Instrument/SCPI/Display/Window.pm ↑ Summary Moose/Instrument/SCPI/Initiate.pm »