File Coverage

blib/lib/Lab/XPRESS/Sweep/Dummy.pm
Criterion Covered Total %
statement 11 22 50.0
branch n/a
condition 0 3 0.0
subroutine 4 6 66.6
pod 1 2 50.0
total 16 33 48.4


line stmt bran cond sub pod time code
1             package Lab::XPRESS::Sweep::Dummy;
2             #ABSTRACT: Dummy sweep
3             $Lab::XPRESS::Sweep::Dummy::VERSION = '3.880';
4 8     8   122 use v5.20;
  8         28  
5              
6 8     8   49 use Lab::XPRESS::Sweep;
  8         17  
  8         274  
7 8     8   70 use Time::HiRes qw/usleep/, qw/time/;
  8         114  
  8         64  
8 8     8   846 use strict;
  8         37  
  8         1634  
9              
10             our @ISA = ('Lab::XPRESS::Sweep');
11              
12             sub new {
13 0     0 0   my $proto = shift;
14 0           my $code = shift;
15 0           my @args = @_;
16 0   0       my $class = ref($proto) || $proto;
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     0 1   my $self = shift;
31 0           return $self->{code}->($self);
32             }
33              
34             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.880
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