Moose/Instrument/RS_RTB2000.pm

filter: Statementstmt 91.8% 34 / 37 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 90.9% 10 / 11 Podpod 0.0% 0 / 1 totaltotal 89.8% 44 / 49 CC 1 SCAR 0.9
CC
1
Cov
92%
BUILD
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« Moose/Instrument/SCPI/Instrument.pm ↑ Summary Moose/Instrument/Agilent33120A.pm »
1 package Lab::Moose::Instrument::RS_RTB2000;
2 1 $Lab::Moose::Instrument::RS_RTB2000::VERSION = '3.931';
3 #ABSTRACT: Rohde & Schwarz RTB 2000 oscilloscope (work in progress)
4  
5 1 ▶use v5.20;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use MooseX::Params::Validate;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use Moose::Util::TypeConstraints qw/enum/;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use List::Util qw/sum/;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use List::MoreUtils qw/minmax/;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 use Lab::Moose::Instrument
13 1 ▶ qw/validated_channel_getter validated_channel_setter validated_getter validated_setter/;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 ▶use Lab::Moose::Instrument::Cache;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 1 ▶use Carp 'croak';
Subroutine BEGIN: called CC=1 SCAR=0.0
16 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
17  
18 1 extends 'Lab::Moose::Instrument';
19  
20 # around default_connection_options => sub {
21 # my $orig = shift;
22 # my $self = shift;
23 # my $options = $self->$orig();
24 # my $usb_opts = { vid => 0x0957, pid => 0x2b07 };
25 # $options->{USB} = $usb_opts;
26 # $options->{'VISA::USB'} = $usb_opts;
27 # return $options;
28 # };
29  
30 0 ▶sub BUILD {
Subroutine BUILD: not called CC=1 SCAR=6.9
Pod undocumented
31 0 my $self = shift;
32 0 $self->clear();
33 0 $self->cls();
34 }
35  
36  
37 #
38 # MY FUNCTIONS
39 #
40  
41  
42 1 with qw(
43 Lab::Moose::Instrument::Common
44 Lab::Moose::Instrument::SCPIBlock
45 );
46  
47 1 __PACKAGE__->meta()->make_immutable();
48  
49 1 1;
50  
51 __END__
« Moose/Instrument/SCPI/Instrument.pm ↑ Summary Moose/Instrument/Agilent33120A.pm »