Moose/Instrument/SCPI/Instrument.pm

filter: Statementstmt 89.2% 25 / 28 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 88.8% 8 / 9 Podpod 100% 2 / 2 totaltotal 89.7% 35 / 39 CC 1 SCAR 1.1
CC
1
Cov
89%
instrument_nselect
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« Moose/Instrument/SCPI/Sense/Bandwidth.pm ↑ Summary Moose/Instrument/RS_RTB2000.pm »
1 package Lab::Moose::Instrument::SCPI::Instrument;
2 3 $Lab::Moose::Instrument::SCPI::Instrument::VERSION = '3.931';
3 #ABSTRACT: Role for SCPI INSTrument subsystem.
4  
5 3 ▶use v5.20;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 3 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 3 ▶use Lab::Moose::Instrument::Cache;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 3 ▶use Lab::Moose::Instrument qw/validated_getter validated_setter/;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 3 ▶use MooseX::Params::Validate;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 3 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 3 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15  
16 3 cache instrument_nselect => ( getter => 'instrument_nselect_query' );
17  
18 2 ▶sub instrument_nselect_query {
Subroutine instrument_nselect_query: called CC=1 SCAR=0.0
Pod documented
19 2 my ( $self, %args ) = validated_getter( \@_ );
20  
21 2 return $self->cached_instrument_nselect(
22 $self->query( command => 'INST:NSEL?', %args ) );
23 }
24  
25 0 ▶sub instrument_nselect {
Subroutine instrument_nselect: not called CC=1 SCAR=6.9
Pod documented
26 0 my ( $self, $value, %args ) = validated_setter( \@_ );
27  
28 0 $self->write( command => "INST:NSEL $value", %args );
29  
30 0 return $self->cached_instrument_nselect($value);
31 }
32  
33 3 1;
34  
35 __END__
« Moose/Instrument/SCPI/Sense/Bandwidth.pm ↑ Summary Moose/Instrument/RS_RTB2000.pm »