lib/TUI/Objects/Streamable.pm

filter: Statementstmt 94.7% 18 / 19 Branchbran 50.0% 1 / 2 Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 78.1% 25 / 32 CC 3 SCAR 8.5
CC
3
Cov
83%
DOES
4.1
BEGIN
1.0
BEGIN
1.0
CRAP 2.3
« lib/TUI/toolkit/UO/Base.pm ↑ Summary lib/TUI/ColorSel/ColorItem.pm »
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
BranchTrueFalseTotal
if defined $_[0] and $_[0] eq __PACKAGE__ 12 0 12
Condition33%1/3
defined $_[0] and $_[0] eq __PACKAGE__
!ll&&!rl&&r
0012
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__
ABresult
0X0
100
111
25 0 return $proto->UNIVERSAL::DOES(@_);
26 }
27
28 149 1;
29
30 __END__
« lib/TUI/toolkit/UO/Base.pm ↑ Summary lib/TUI/ColorSel/ColorItem.pm »