| 1 | package Lab::Moose::Connection::Debug; | ||||||||||
| 2 | 4 | $Lab::Moose::Connection::Debug::VERSION = '3.931'; | |||||||||
| 3 | #ABSTRACT: Debug connection, printing / reading on terminal | ||||||||||
| 4 | |||||||||||
| 5 | 4 | ▶ | use v5.20; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 4 | ▶ | use namespace::autoclean; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 4 | ▶ | use Data::Dumper; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 4 | ▶ | use YAML::XS; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | |||||||||||
| 12 | 4 | ▶ | use Carp; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | |||||||||||
| 14 | 4 | has verbose => ( | |||||||||
| 15 | is => 'ro', | ||||||||||
| 16 | isa => 'Bool', | ||||||||||
| 17 | default => 1, | ||||||||||
| 18 | ); | ||||||||||
| 19 | |||||||||||
| 20 | |||||||||||
| 21 | 172 | ▶ | sub Write { | ||||||||
|
Subroutine
Write: called CC=2 SCAR=7.6
Pod
documented
| |||||||||||
| 22 | 172 | my $self = shift; | |||||||||
| 23 | 172 | my %args = @_; | |||||||||
| 24 | 172 | ▶ | if ( $self->verbose() ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 25 | 0 | carp "Write called with args:\n", Dump \%args, "\n"; | |||||||||
| 26 | } | ||||||||||
| 27 | } | ||||||||||
| 28 | |||||||||||
| 29 | |||||||||||
| 30 | 0 | ▶ | sub Read { | ||||||||
|
Subroutine
Read: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 31 | 0 | my $self = shift; | |||||||||
| 32 | 0 | my %args = @_; | |||||||||
| 33 | 0 | carp "Read called with args:\n", Dump \%args, "\n"; | |||||||||
| 34 | 0 | say "enter return value:"; | |||||||||
| 35 | 0 | my $retval = <STDIN>; | |||||||||
| 36 | 0 | chomp $retval; | |||||||||
| 37 | 0 | return $retval; | |||||||||
| 38 | } | ||||||||||
| 39 | |||||||||||
| 40 | |||||||||||
| 41 | 0 | ▶ | sub Query { | ||||||||
|
Subroutine
Query: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 42 | 0 | my $self = shift; | |||||||||
| 43 | 0 | my %args = @_; | |||||||||
| 44 | 0 | carp "Query called with args:\n", Dump \%args, "\n"; | |||||||||
| 45 | 0 | say "enter return value:"; | |||||||||
| 46 | 0 | my $retval = <STDIN>; | |||||||||
| 47 | 0 | chomp $retval; | |||||||||
| 48 | 0 | return $retval; | |||||||||
| 49 | } | ||||||||||
| 50 | |||||||||||
| 51 | |||||||||||
| 52 | 18 | ▶ | sub Clear { | ||||||||
|
Subroutine
Clear: called CC=2 SCAR=8.1
Pod
documented
| |||||||||||
| 53 | 18 | my $self = shift; | |||||||||
| 54 | 18 | ▶ | if ( $self->verbose ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 55 | 0 | carp "Clear called"; | |||||||||
| 56 | } | ||||||||||
| 57 | } | ||||||||||
| 58 | |||||||||||
| 59 | 4 | with 'Lab::Moose::Connection'; | |||||||||
| 60 | |||||||||||
| 61 | 4 | __PACKAGE__->meta->make_immutable(); | |||||||||
| 62 | 4 | 1; | |||||||||
| 63 | |||||||||||
| 64 | __END__ | ||||||||||