Moose/Connection/IsoBus.pm

filter: Statementstmt 51.2% 20 / 39 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 45.4% 5 / 11 Podpod 0.0% 0 / 6 totaltotal 44.6% 25 / 56 CC 1 SCAR 4.4
CC
1
Cov
51%
BUILD
2.0
set_termchar
2.0
enable_read_termchar
2.0
CRAP 1.5
« Moose/Connection/Debug.pm ↑ Summary Moose/Instrument/HP83732A.pm »
1 package Lab::Moose::Connection::IsoBus;
2 1 $Lab::Moose::Connection::IsoBus::VERSION = '3.931';
3 #ABSTRACT: Connection back end to the Oxford Instruments IsoBus
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 Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 1 has base_connection => (
13 is => 'ro',
14 isa => 'Lab::Moose::Connection'
15 );
16  
17 1 has isobus_address => (
18 is => 'ro',
19 isa => 'Int'
20 );
21  
22 0 ▶sub BUILD {
Subroutine BUILD: not called CC=1 SCAR=6.9
Pod undocumented
23 0 my $self = shift;
24  
25 }
26  
27 0 ▶sub set_termchar {
Subroutine set_termchar: not called CC=1 SCAR=6.9
Pod undocumented
28 0 my $self = shift;
29 0 my %args = @_;
30 0 my $termchar = delete $args{termchar};
31  
32 0 $self->base_connection->set_termchar(termchar => $termchar, %args);
33 }
34  
35 0 ▶sub enable_read_termchar {
Subroutine enable_read_termchar: not called CC=1 SCAR=6.9
Pod undocumented
36 0 my $self = shift;
37 0 my %args = @_;
38  
39 0 $self->base_connection->enable_read_termchar(%args);
40 }
41  
42  
43 0 ▶sub Write {
Subroutine Write: not called CC=1 SCAR=6.9
Pod undocumented
44 0 my $self = shift;
45 0 my %args = @_;
46 0 my $cmd = delete $args{command};
47 0 $cmd = "\@" . $self->isobus_address() . $cmd;
48 0 $self->base_connection->Write(command => $cmd, %args );
49 }
50  
51 0 ▶sub Read {
Subroutine Read: not called CC=1 SCAR=6.9
Pod undocumented
52 0 my $self = shift;
53 0 my %args = @_;
54  
55 0 return $self->base_connection->Read( %args );
56 }
57  
58 0 ▶sub Clear {
Subroutine Clear: not called CC=1 SCAR=6.9
Pod undocumented
59 0 my $self = shift;
60 0 my %args = @_;
61  
62 0 $self->base_connection->Clear( %args );
63 }
64  
65 1 with 'Lab::Moose::Connection';
66  
67 1 __PACKAGE__->meta->make_immutable();
68  
69 1 1;
70  
71 __END__
« Moose/Connection/Debug.pm ↑ Summary Moose/Instrument/HP83732A.pm »