blib/lib/PMLTQ/Relation/Treex/AEChildIterator.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/Treex/AEChildCIterator.pm ↑ Summary blib/lib/PMLTQ/Relation/Treex/TEChildIterator.pm »
1 package PMLTQ::Relation::Treex::AEChildIterator;
2 12 our $AUTHORITY = 'cpan:MATY';
3 12 $PMLTQ::Relation::Treex::AEChildIterator::VERSION = '1.5.0';
4 # ABSTRACT: Effective child relation iterator on a-nodes for Treex treebanks
5  
6 12 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 12 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 12 ▶use base qw(PMLTQ::Relation::SimpleListIterator);
Subroutine BEGIN: called CC=1 SCAR=0.0
9 use PMLTQ::Relation {
10 12 name => 'echild',
11 schema => 'treex_document',
12 reversed_relation => 'implementation:eparent',
13 start_node_type => 'a-node',
14 target_node_type => 'a-node',
15 iterator_class => __PACKAGE__,
16 iterator_weight => 5,
17 test_code => q( grep($_ == $start, PMLTQ::Relation::Treex::AGetEParents($end)) ? 1 : 0 ),
18 12 ▶};
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20 sub get_node_list {
21 0 ▶ my ( $self, $node ) = @_;
Subroutine get_node_list: not called CC=1 SCAR=6.9
Pod undocumented
22 0 my $type = $node->type->get_base_type_name;
23 0 my $fsfile = $self->start_file;
24 0 return [ map [ $_, $fsfile ], PMLTQ::Relation::Treex::AGetEChildren($node) ];
25 }
26  
27 12 1;
28  
29 __END__
« blib/lib/PMLTQ/Relation/Treex/AEChildCIterator.pm ↑ Summary blib/lib/PMLTQ/Relation/Treex/TEChildIterator.pm »