XPRESS/Sweep/Dummy.pm

filter: Statementstmt 56.0% 14 / 25 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 66.6% 4 / 6 Podpod 50.0% 1 / 2 totaltotal 50.0% 19 / 38 SCAR 9.2
CC
2
Cov
50%
new
6.0
start
2.0
BEGIN
1.0
CRAP 2.5
« Moose/Instrument/Common.pm ↑ Summary Moose/Instrument/RS_SMB.pm »
1 package Lab::XPRESS::Sweep::Dummy;
2 #ABSTRACT: Dummy sweep
3 8 $Lab::XPRESS::Sweep::Dummy::VERSION = '3.881';
4 8 ▶use v5.20;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 8 ▶use Lab::XPRESS::Sweep;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 8 ▶use Time::HiRes qw/usleep/, qw/time/;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 8 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 8 our @ISA = ('Lab::XPRESS::Sweep');
11  
12 sub new {
13 0 ▶ my $proto = shift;
Subroutine new: not called CC=2 SCAR=17.9
Pod undocumented
14 0 my $code = shift;
15 0 my @args = @_;
16 0 ▶ my $class = ref($proto) || $proto;
Condition0%0/3
ref $proto || $proto
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $proto || $proto
ref $proto $proto
Truth table0%0/3
A || B
A= ref $protoB= $proto
ABresult
1X1
011
000
17 0 my $self->{default_config} = { id => 'Dummy_sweep' };
18 $self = $class->SUPER::new(
19 $self->{default_config},
20 $self->{default_config}
21 0 );
22 0 bless( $self, $class );
23  
24 0 $self->{code} = $code;
25  
26 0 return $self;
27 }
28  
29 sub start {
30 0 ▶ my $self = shift;
Subroutine start: not called CC=1 SCAR=6.9
Pod documented
31 0 return $self->{code}->($self);
32 }
33  
34 8 1;
35  
36 __END__
37  
38 =pod
39  
40 =encoding UTF-8
41  
42 =head1 NAME
43  
44 Lab::XPRESS::Sweep::Dummy - Dummy sweep
45  
46 =head1 VERSION
47  
48 version 3.881
49  
50 =head1 COPYRIGHT AND LICENSE
51  
52 This software is copyright (c) 2023 by the Lab::Measurement team; in detail:
53  
54 Copyright 2012 Stefan Geissler
55 2013 Andreas K. Huettel
56 2016 Simon Reinhardt
57 2017 Andreas K. Huettel
58 2020 Andreas K. Huettel
59  
60  
61 This is free software; you can redistribute it and/or modify it under
62 the same terms as the Perl 5 programming language system itself.
63  
64 =cut
« Moose/Instrument/Common.pm ↑ Summary Moose/Instrument/RS_SMB.pm »