Moose/Sweep/Step/Pulsedelay.pm

filter: Statementstmt 68.4% 13 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 2 / 4 Podpod n/a totaltotal 65.2% 15 / 23 CC 2 SCAR 11.6
CC
2
Cov
68%
_pulsedelay_setter
6.0
_build_setter
2.0
BEGIN
1.0
CRAP 3.2
« Moose/Sweep/Step/Power.pm ↑ Summary Moose/Sweep/Step/Pulsewidth.pm »
1 package Lab::Moose::Sweep::Step::Pulsedelay;
2 1 $Lab::Moose::Sweep::Step::Pulsedelay::VERSION = '3.931';
3 #ABSTRACT: Pulsedelay sweep.
4  
5 1 ▶use v5.20;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7  
8 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 extends 'Lab::Moose::Sweep::Step';
11  
12 1 has filename_extension =>
13 ( is => 'ro', isa => 'Str', default => 'Pulsedelay=' );
14  
15 1 has setter => ( is => 'ro', isa => 'CodeRef', builder => '_build_setter' );
16  
17 1 has instrument =>
18 ( is => 'ro', isa => 'ArrayRefOfInstruments', coerce => 1, required => 1 );
19  
20 1 has constant_width => ( is => 'ro', isa => 'Bool', default => 0 );
21  
22 0 ▶sub _build_setter {
Subroutine _build_setter: not called CC=1 SCAR=6.9
23 0 return \&_pulsedelay_setter;
24 }
25  
26 0 ▶sub _pulsedelay_setter {
Subroutine _pulsedelay_setter: not called CC=2 SCAR=17.9
27 0 my $self = shift;
28 0 my $value = shift;
29 0 foreach (@{$self->instrument}) {
30 0 $_->set_pulsedelay(
31 value => $value,
32 constant_width => $self->constant_width
33 );
34 }
35 }
36  
37 1 __PACKAGE__->meta->make_immutable();
38 1 1;
39  
40 __END__
« Moose/Sweep/Step/Power.pm ↑ Summary Moose/Sweep/Step/Pulsewidth.pm »