blib/lib/PMLTQ/Relation/PDT/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/Grammar.pm ↑ Summary blib/lib/PMLTQ/Relation/PDT/TEChildIterator.pm »
1 package PMLTQ::Relation::PDT::AEChildIterator;
2 12 our $AUTHORITY = 'cpan:MATY';
3 12 $PMLTQ::Relation::PDT::AEChildIterator::VERSION = '1.2.2';
4 # ABSTRACT: Effective child relation iterator on a-nodes for PDT like 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 => 'adata',
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::PDT::AGetEParents($end,\&PMLTQ::Relation::PDT::ADiveAuxCP)) ? 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::PDT::AGetEChildren($node, \&PMLTQ::Relation::PDT::ADiveAuxCP) ];
25 }
26  
27 12 1;
28  
29 __END__
« blib/lib/PMLTQ/Grammar.pm ↑ Summary blib/lib/PMLTQ/Relation/PDT/TEChildIterator.pm »