| 1 | package TUI::Objects::Streamable; | ||||||||||||||||||||||||||||
| 2 | # ABSTRACT: defines the role TStreamable | ||||||||||||||||||||||||||||
| 3 | |||||||||||||||||||||||||||||
| 4 | 149 | ▶ | use 5.010; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 5 | 149 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 6 | 149 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 7 | |||||||||||||||||||||||||||||
| 8 | 149 | our $VERSION = '2.000003'; | |||||||||||||||||||||||||||
| 9 | 149 | $VERSION =~ tr/_//d; | |||||||||||||||||||||||||||
| 10 | 149 | our $AUTHORITY = 'cpan:BRICKPOOL'; | |||||||||||||||||||||||||||
| 11 | |||||||||||||||||||||||||||||
| 12 | 149 | ▶ | use Exporter 'import'; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 13 | 149 | our @EXPORT = qw( | |||||||||||||||||||||||||||
| 14 | TStreamable | ||||||||||||||||||||||||||||
| 15 | ); | ||||||||||||||||||||||||||||
| 16 | |||||||||||||||||||||||||||||
| 17 | sub TStreamable() { __PACKAGE__ } | ||||||||||||||||||||||||||||
| 18 | |||||||||||||||||||||||||||||
| 19 | sub read : method; | ||||||||||||||||||||||||||||
| 20 | sub write : method; | ||||||||||||||||||||||||||||
| 21 | |||||||||||||||||||||||||||||
| 22 | 12 | ▶ | sub DOES { | ||||||||||||||||||||||||||
|
Subroutine
DOES: called CC=3 SCAR=14.2
Pod
undocumented
| |||||||||||||||||||||||||||||
| 23 | 12 | my $proto = shift; | |||||||||||||||||||||||||||
| 24 | 12 | ▶ | return 1 if defined $_[0] && $_[0] eq __PACKAGE__; | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $_[0] and $_[0] eq __PACKAGE__
MC/DC0%0/2
defined $_[0] and $_[0] eq __PACKAGE__
defined $_[0]
$_[0] eq __PACKAGE__
Truth table33%1/3
A and B
A= defined $_[0]B= $_[0] eq __PACKAGE__
| |||||||||||||||||||||||||||||
| 25 | 0 | return $proto->UNIVERSAL::DOES(@_); | |||||||||||||||||||||||||||
| 26 | } | ||||||||||||||||||||||||||||
| 27 | |||||||||||||||||||||||||||||
| 28 | 149 | 1; | |||||||||||||||||||||||||||
| 29 | |||||||||||||||||||||||||||||
| 30 | __END__ | ||||||||||||||||||||||||||||