ListView/Model.pm

filter: Statementstmt 50.0% 4 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 33.3% 1 / 3 Podpod 100% 2 / 2 totaltotal 53.8% 7 / 13 CC 1 SCAR 5.1
CC
1
Cov
50%
get_item
2.0
get_item_count
2.0
BEGIN
1.0
CRAP 1.7
« ListView/SimpleModel.pm ↑ Summary ListView.pm »
1 package Wx::Perl::ListView::Model;
2  
3 =head1 NAME
4  
5 Wx::Perl::ListView::Model - virtual list control model class
6  
7 =head1 DESCRIPTION
8  
9 An abstract base class for all models.
10  
11 =head1 METHODS
12  
13 =cut
14  
15 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 =head2 get_item
18  
19 my $item = $model->get_item( $row, $column );
20  
21 Where item has the form (only C<string> is mandatory):
22  
23 { string => 'text',
24 image => $image_index,
25 attr => $list_item_attribute,
26 foreground => $foreground_colour,
27 background => $background_colour,
28 font => $font,
29 }
30  
31 =cut
32  
33 0 ▶sub get_item { my( $self, $row, $column ) = @_; die 'Implement me'; }
Subroutine get_item: not called CC=1 SCAR=6.9
Pod documented
34  
35 =head2 get_item_count
36  
37 my $count = $model->get_item_count;
38  
39 Returns the number of items in the model.
40  
41 =cut
42  
43 0 ▶sub get_item_count { my( $self ) = @_; die 'Implement me'; }
Subroutine get_item_count: not called CC=1 SCAR=6.9
Pod documented
44  
45 2 1;
« ListView/SimpleModel.pm ↑ Summary ListView.pm »