Menu/itembase.pm

filter: Statementstmt 50.0% 9 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 2 / 4 Podpod 0.0% 0 / 1 totaltotal 47.8% 11 / 23 CC 1 SCAR 3.1
CC
1
Cov
50%
render_label
1.7
name
1.7
BEGIN
1.0
CRAP 1.4
↑ Summary Menu.pm »
1 # You may distribute under the terms of either the GNU General Public License
2 # or the Artistic License (the same terms as Perl itself)
3 #
4 # (C) Paul Evans, 2013-2022 -- leonerd@leonerd.org.uk
5  
6 1 ▶use v5.26;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use Object::Pad 0.73 ':experimental(init_expr)';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 package Tickit::Widget::Menu::itembase 0.16;
10 role Tickit::Widget::Menu::itembase;
11  
12 1 field $_name :param :reader = undef;
13  
14 0 ▶method render_label ( $rb, $cols, $menu )
Subroutine name: not called CC=1 SCAR=5.3
Subroutine render_label: not called CC=1 SCAR=5.5
Pod undocumented
15 {
16 0 $rb->text( $_name );
17 1 }
18  
19 1 0x55AA;
↑ Summary Menu.pm »