blib/lib/PMLTQ/Relation/Treex/AEChildCIterator.pm

filter: Statementstmt 78.9% 15 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 76.0% 19 / 25 CC 1 SCAR 1.8
CC
1
Cov
79%
get_node_list
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« blib/lib/PMLTQ/Relation/PDT/TEChildIterator.pm ↑ Summary blib/lib/PMLTQ/Relation/Treex/AEChildIterator.pm »
1 package PMLTQ::Relation::Treex::AEChildCIterator;
2 12 our $AUTHORITY = 'cpan:MATY';
3 12 $PMLTQ::Relation::Treex::AEChildCIterator::VERSION = '1.2.2';
4 # ABSTRACT: Different implementation of effective child relation iterator on a-nodes for Treex treebanks
5  
6  
7 12 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 12 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 12 ▶use base qw(PMLTQ::Relation::SimpleListIterator);
Subroutine BEGIN: called CC=1 SCAR=0.0
10 use PMLTQ::Relation {
11 12 name => 'echildC',
12 schema => 'treex_document',
13 reversed_relation => 'implementation:eparentC',
14 start_node_type => 'a-node',
15 target_node_type => 'a-node',
16 iterator_class => __PACKAGE__,
17 iterator_weight => 5,
18 test_code => q( grep($_ == $start, PMLTQ::Relation::Treex::AGetEParentsC($end)) ? 1 : 0 ),
19 12 ▶};
Subroutine BEGIN: called CC=1 SCAR=0.0
20  
21 sub get_node_list {
22 0 ▶ my ( $self, $node ) = @_;
Subroutine get_node_list: not called CC=1 SCAR=6.9
Pod undocumented
23 0 my $type = $node->type->get_base_type_name;
24 0 my $fsfile = $self->start_file;
25 0 return [ map [ $_, $fsfile ], PMLTQ::Relation::Treex::AGetEChildrenC($node) ];
26 }
27  
28 12 1;
29  
30 __END__
« blib/lib/PMLTQ/Relation/PDT/TEChildIterator.pm ↑ Summary blib/lib/PMLTQ/Relation/Treex/AEChildIterator.pm »