Connection/DEBUG.pm

filter: Statementstmt 100% 30 / 30 Branchbran n/a Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 8 / 8 Podpod 100% 1 / 1 totaltotal 90.9% 40 / 44 SCAR 6.9
CC
2
Cov
94%
new
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
« Moose/Sweep/Step/Repeat.pm ↑ Summary GenericSignals.pm »
1 package Lab::Connection::DEBUG;
2 #ABSTRACT: Connection to the DEBUG bus
3 3 $Lab::Connection::DEBUG::VERSION = '3.881';
4 3 ▶use v5.20;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 3 ▶use Time::HiRes qw (usleep sleep);
Subroutine BEGIN: called CC=1 SCAR=0.0
8 3 ▶use Lab::Connection;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 3 ▶use Data::Dumper;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 3 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 3 ▶use parent 'Lab::Connection';
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 3 our %fields = (
15 bus_class => "Lab::Bus::DEBUG",
16 brutal => 0, # brutal as default?
17 type => 'DEBUG',
18 wait_status => 10e-6, # sec;
19 wait_query => 10e-6, # sec;
20 query_length => 300, # bytes
21 query_long_length => 10240, #bytes
22 read_length => 1000, # bytesx
23 instrument_index => 0,
24 );
25  
26 sub new {
27 2 ▶ my $proto = shift;
Subroutine new: called CC=2 SCAR=7.1
Pod documented
28 2 ▶ my $class = ref($proto) || $proto;
Condition33%1/3
ref $proto || $proto
l!l&&r!l&&!r
020
MC/DC0%0/2
ref $proto || $proto
ref $proto $proto
Truth table33%1/3
A || B
A= ref $protoB= $proto
ABresult
1X1
011
000
29 2 my $twin = undef;
30 2 my $self = $class->SUPER::new(@_)
31 ; # getting fields and _permitted from parent class
32 2 $self->${ \( __PACKAGE__ . '::_construct' ) }(__PACKAGE__);
33  
34 2 return $self;
35 }
36  
37 3 1;
38  
39 __END__
40  
41 =pod
42  
43 =encoding UTF-8
44  
45 =head1 NAME
46  
47 Lab::Connection::DEBUG - Connection to the DEBUG bus
48  
49 =head1 VERSION
50  
51 version 3.881
52  
53 =head1 COPYRIGHT AND LICENSE
54  
55 This software is copyright (c) 2023 by the Lab::Measurement team; in detail:
56  
57 Copyright 2011 Andreas K. Huettel, Florian Olbrich
58 2012 Florian Olbrich
59 2016 Simon Reinhardt
60 2017 Andreas K. Huettel
61 2020 Andreas K. Huettel
62  
63  
64 This is free software; you can redistribute it and/or modify it under
65 the same terms as the Perl 5 programming language system itself.
66  
67 =cut
« Moose/Sweep/Step/Repeat.pm ↑ Summary GenericSignals.pm »