lib/TUI/Gadgets/LineCollection.pm

filter: Statementstmt 100% 33 / 33 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 10 / 10 Podpod 66.6% 2 / 3 totaltotal 97.8% 45 / 46 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/TUI/Objects/Const.pm ↑ Summary lib/TUI/Objects/StringCollection.pm »
1 package TUI::Gadgets::LineCollection;
2 # ABSTRACT: Implement a line collection for the framework.
3
4 6 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7
8 6 our $VERSION = '2.000002';
9 6 $VERSION =~ tr/_//d;
10 6 our $AUTHORITY = 'cpan:BRICKPOOL';
11
12 6 ▶use Exporter 'import';
Subroutine BEGIN: called CC=1 SCAR=0.0
13 6 our @EXPORT = qw(
14 TLineCollection
15 new_TLineCollection
16 );
17
18 6 ▶use TUI::toolkit;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 6 ▶use TUI::toolkit::Types qw( :types );
Subroutine BEGIN: called CC=1 SCAR=0.0
20
21 6 ▶use TUI::Objects::Collection;
Subroutine BEGIN: called CC=1 SCAR=0.0
22
23 sub TLineCollection() { __PACKAGE__ }
24 1 ▶sub new_TLineCollection { __PACKAGE__->from(@_) }
Subroutine new_TLineCollection: called CC=1 SCAR=0.0
Pod documented
25
26 6 extends TCollection;
27
28 3 ▶sub BUILDARGS { # \%args (%args)
Subroutine BUILDARGS: called CC=1 SCAR=0.0
Pod documented
29 3 state $sig = signature(
30 method => 1,
31 named => [
32 limit => Int, { alias => 'lim' },
33 delta => Int,
34 ],
35 caller_level => +1,
36 );
37 3 my ( $class, $args ) = $sig->( @_ );
38 3 return { %$args };
39 }
40
41 1 ▶sub from { # $obj ($lim, $delta)
Subroutine from: called CC=1 SCAR=0.0
Pod undocumented
42 1 state $sig = signature(
43 method => 1,
44 pos => [Int, Int],
45 );
46 1 my ( $class, @args ) = $sig->( @_ );
47 1 return $class->new( limit => $args[0], delta => $args[1] );
48 }
49
50 6 1
51
52 __END__
« lib/TUI/Objects/Const.pm ↑ Summary lib/TUI/Objects/StringCollection.pm »