blib/lib/PMLTQ/Relation/PDT.pm

filter: Statementstmt 11.1% 14 / 126 Branchbran 0.0% 0 / 92 Conditioncond 0.0% 0 / 90 MC/DCmcdc 0.0% 0 / 45 Subroutinesub 13.3% 2 / 15 Podpod 41.6% 5 / 12 totaltotal 5.5% 21 / 380 CC 77 SCAR 49.1
CC
77
Cov
5%
A_FilterEChildren
240.0
AGetEParents
210.0
T_FilterEChildren
210.0
CRAP 135.9
« blib/lib/PMLTQ/Commands.pm ↑ Summary blib/lib/PMLTQ/Relation/OrderIterator.pm »
1 package PMLTQ::Relation::PDT;
2 11 our $AUTHORITY = 'cpan:MATY';
3 11 $PMLTQ::Relation::PDT::VERSION = '1.5.0';
4 # ABSTRACT: PDT user defined relations
5  
6 11 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 11 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 11 require PMLTQ::Relation::PDT::AEChildIterator;
10 11 require PMLTQ::Relation::PDT::AEParentIterator;
11 11 require PMLTQ::Relation::PDT::ALexOrAuxRFIterator;
12 11 require PMLTQ::Relation::PDT::TEChildIterator;
13 11 require PMLTQ::Relation::PDT::TEParentIterator;
14  
15  
16 #
17 # This file implements the following user-defined relations for PML-TQ
18 #
19 # - a/lex.rf|a/aux.rf
20 # - eparent (both t-layer and a-layer)
21 # - echild (both t-layer and a-layer)
22 #
23 #################################################
24  
25  
26 ######## A Layer
27  
28  
29 sub ADiveAuxCP ($){
30 0 ▶ $_[0]->{afun}=~/^Aux[CP]/ ? 1 : 0;
Subroutine ADiveAuxCP: not called CC=2 SCAR=17.9
Pod undocumented
Branch: 1 branch
BranchTrueFalseTotal
$_[0]{'afun'} =~ /^Aux[CP]/ ? : 0 0 0
31 }#DiveAuxCP
32  
33  
34 sub A_ExpandCoordGetEParents { # node through
35 0 ▶ my ($node,$through)=@_;
Subroutine A_ExpandCoordGetEParents: not called CC=6 SCAR=37.4
Pod undocumented
36 0 my @toCheck = $node->children;
37 0 my @checked;
38 0 ▶ while (@toCheck) {
Branch: 1 branch
BranchTrueFalseTotal
if (@toCheck) 0 0 0
39 @toCheck=map {
40 0 ▶ if (&$through($_)) { $_->children() }
Branch: 3 branches
BranchTrueFalseTotal
if (&$through($_)) { } 0 0 0
elsif ($_->{'afun'} =~ /Coord|Apos/ and $_->{'is_member'}) { } 0 0 0
elsif ($_->{'is_member'}) { } 0 0 0
41 0 ▶ elsif($_->{afun}=~/Coord|Apos/&&$_->{is_member}){ A_ExpandCoordGetEParents($_,$through) }
Condition0%0/3
$_->{"afun"} =~ /Coord|Apos/ and $_->{"is_member"}
!ll&&!rl&&r
000
MC/DC0%0/2
$_->{"afun"} =~ /Coord|Apos/ and $_->{"is_member"}
$_->{"afun"} =~ /Coord|Apos/ $_->{"is_member"}
Truth table0%0/3
A and B
A= $_->{"afun"} =~ /Coord|Apos/B= $_->{"is_member"}
ABresult
0X0
100
111
42 0 elsif($_->{is_member}){ push @checked,$_;() }
43 0 else{()}
44 }@toCheck;
45 }
46 0 return @checked;
47 }# A_ExpandCoordGetEParents
48  
49 sub AGetEParents { # node through
50 0 ▶ my ($node,$through)=@_;
Subroutine AGetEParents: not called CC=14 SCAR=53.5
Pod documented
51 0 my $init_node = $node; # only used for reporting errors
52 0 ▶ return() if !$node or $node->{afun}=~/^(?:Coord|Apos|Aux[SCP])$/;
Branch: 1 branch
BranchTrueFalseTotal
if not $node or $node->{"afun"} =~ /^(?:Coord|Apos|Aux[SCP])$/ 0 0 0
Condition0%0/3
not $node or $node->{"afun"} =~ /^(?:Coord|Apos|Aux[SCP])$/
l!l&&r!l&&!r
000
MC/DC0%0/2
not $node or $node->{"afun"} =~ /^(?:Coord|Apos|Aux[SCP])$/
not $node $node->{"afun"} =~ /^(?:Coord|Apos|Aux[SCP])$/
Truth table0%0/3
not(A) or B
A= not $nodeB= $node->{"afun"} =~ /^(?:Coord|Apos|Aux[SCP])$/
ABresult
1X1
011
000
53 0 ▶ if ($node->{is_member}) { # go to coordination head
Branch: 1 branch
BranchTrueFalseTotal
if ($node->{"is_member"}) 0 0 0
54 0 ▶ while ($node->{afun}!~/Coord|Apos|AuxS/ or $node->{is_member}) {
Branch: 1 branch
BranchTrueFalseTotal
if (not $node->{"afun"} =~ /Coord|Apos|AuxS/ or $node->{"is_member"}) 0 0 0
Condition0%0/3
not $node->{"afun"} =~ /Coord|Apos|AuxS/ or $node->{"is_member"}
l!l&&r!l&&!r
000
MC/DC0%0/2
not $node->{"afun"} =~ /Coord|Apos|AuxS/ or $node->{"is_member"}
not $node->{"afun"} =~ /Coord|Apos|AuxS/ $node->{"is_member"}
Truth table0%0/3
not(A) or B
A= not $node->{"afun"} =~ /Coord|Apos|AuxS/B= $node->{"is_member"}
ABresult
1X1
011
000
55 0 $node=$node->parent;
56 0 ▶ if (!$node) {
Branch: 2 branches
BranchTrueFalseTotal
if (not $node) { } 0 0 0
elsif ($node->{'afun'} eq 'AuxS') { } 0 0 0
57 0 print STDERR
58 "GetEParents: Error - no coordination head $init_node->{AID}: ".ThisAddress($init_node)."\n";
59 0 return();
60 } elsif($node->{afun} eq 'AuxS') {
61 0 print STDERR
62 "GetEParents: Error - no coordination head $node->{AID}: ".ThisAddress($node)."\n";
63 0 return();
64 }
65 }
66 }
67 0 ▶ if (&$through($node->parent)) { # skip 'through' nodes
Branch: 1 branch
BranchTrueFalseTotal
if (&$through($node->parent)) 0 0 0
68 0 ▶ while ($node and &$through($node->parent)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($node and &$through($node->parent)) 0 0 0
Condition0%0/3
$node and &$through($node->parent)
!ll&&!rl&&r
000
MC/DC0%0/2
$node and &$through($node->parent)
$node &$through($node->parent)
Truth table0%0/3
A and B
A= $nodeB= &$through($node->parent)
ABresult
0X0
100
111
69 0 $node=$node->parent;
70 }
71 }
72 0 ▶ return unless $node;
Branch: 1 branch
BranchTrueFalseTotal
unless $node 0 0 0
73 0 $node=$node->parent;
74 0 ▶ return unless $node;
Branch: 1 branch
BranchTrueFalseTotal
unless $node 0 0 0
75 0 ▶ return $node if $node->{afun}!~/Coord|Apos/;
Branch: 1 branch
BranchTrueFalseTotal
unless $node->{"afun"} =~ /Coord|Apos/ 0 0 0
76 0 A_ExpandCoordGetEParents($node,$through);
77 } # AGetEParents
78  
79  
80 sub A_FilterEChildren{ # node dive suff from
81 0 ▶ my ($node,$dive,$suff,$from)=@_;
Subroutine A_FilterEChildren: not called CC=15 SCAR=54.8
Pod undocumented
82 0 my @sons;
83 0 $node=$node->firstson;
84 0 ▶ while ($node) {
Branch: 1 branch
BranchTrueFalseTotal
if ($node) 0 0 0
85 # return @sons if $suff && @sons; # comment this line to get all members
86 0 ▶ unless ($node==$from){ # on the way up do not go back down again
Branch: 1 branch
BranchTrueFalseTotal
unless ($node == $from) 0 0 0
87 0 ▶ if (!$suff&&$node->{afun}=~/Coord|Apos/&&!$node->{is_member}
Branch: 3 branches
BranchTrueFalseTotal
if (not $suff and $node->{'afun'} =~ /Coord|Apos/ and not $node->{'is_member'} or $suff and $node->{'afun'} =~ /Coord|Apos/ and $node->{'is_member'}) { } 0 0 0
elsif (&$dive($node) and $node->firstson) { } 0 0 0
elsif ($suff and $node->{'is_member'} or not $suff || $node->{'is_member'}) { } 0 0 0
Condition0%0/15
not $suff and $node->{"afun"} =~ /Coord|Apos/ and not $node->{"is_member"} or $suff and $node->{"afun"} =~ /Coord|Apos/ and $node->{"is_member"}
l!l&&r!l&&!r
000
not $suff and $node->{"afun"} =~ /Coord|Apos/ and not $node->{"is_member"}
!ll&&!rl&&r
000
not $suff and $node->{"afun"} =~ /Coord|Apos/
!ll&&!rl&&r
000
$suff and $node->{"afun"} =~ /Coord|Apos/ and $node->{"is_member"}
!ll&&!rl&&r
000
$suff and $node->{"afun"} =~ /Coord|Apos/
!ll&&!rl&&r
000
MC/DC0%0/6
not $suff and $node->{"afun"} =~ /Coord|Apos/ and not $node->{"is_member"} or $suff and $node->{"afun"} =~ /Coord|Apos/ and $node->{"is_member"}
not $suff $node->{"afun"} =~ /Coord|Apos/ not $node->{"is_member"} $suff $node->{"afun"} =~ /Coord|Apos/ $node->{"is_member"}
Truth table0%0/13
not(A) and B and not(C) or D and E and F
A= not $suffB= $node->{"afun"} =~ /Coord|Apos/C= not $node->{"is_member"}D= $suffE= $node->{"afun"} =~ /Coord|Apos/F= $node->{"is_member"}
ABCDEFresult
111XXX1
0XX1111
10X1111
1101111
0XX0XX0
0XX10X0
0XX1100
10X0XX0
10X10X0
10X1100
1100XX0
11010X0
1101100
88 or$suff&&$node->{afun}=~/Coord|Apos/&&$node->{is_member}) {
89 0 push @sons,A_FilterEChildren($node,$dive,1,0)
90 ▶ } elsif (&$dive($node) and $node->firstson){
Condition0%0/3
&$dive($node) and $node->firstson
!ll&&!rl&&r
000
MC/DC0%0/2
&$dive($node) and $node->firstson
&$dive($node) $node->firstson
Truth table0%0/3
A and B
A= &$dive($node)B= $node->firstson
ABresult
0X0
100
111
91 0 push @sons,A_FilterEChildren($node,$dive,$suff,0);
92 ▶ } elsif(($suff&&$node->{is_member})
Condition0%0/9
$suff and $node->{"is_member"} or not $suff || $node->{"is_member"}
l!l&&r!l&&!r
000
$suff and $node->{"is_member"}
!ll&&!rl&&r
000
$suff || $node->{'is_member'}
l!l&&r!l&&!r
000
MC/DC0%0/4
$suff and $node->{"is_member"} or not $suff || $node->{"is_member"}
$suff $node->{"is_member"} $suff $node->{'is_member'}
Truth table0%0/7
A and B or not(C || D)
A= $suffB= $node->{"is_member"}C= $suffD= $node->{'is_member'}
ABCDresult
11XX1
0X001
10001
0X1X0
0X010
101X0
10010
93 ||(!$suff&&!$node->{is_member})){ # this we are looking for
94 0 push @sons,$node;
95 }
96 } # unless node == from
97 0 $node=$node->rbrother;
98 }
99 0 @sons;
100 } # A_FilterEChildren
101  
102 sub AGetEChildren{ # node dive
103 0 ▶ my ($node,$dive)=@_;
Subroutine AGetEChildren: not called CC=8 SCAR=42.8
Pod documented
104 0 ▶ return() if !$node or $node->{afun}=~/^(?:Coord|Apos|Aux[SCP])$/;
Branch: 1 branch
BranchTrueFalseTotal
if not $node or $node->{"afun"} =~ /^(?:Coord|Apos|Aux[SCP])$/ 0 0 0
Condition0%0/3
not $node or $node->{"afun"} =~ /^(?:Coord|Apos|Aux[SCP])$/
l!l&&r!l&&!r
000
MC/DC0%0/2
not $node or $node->{"afun"} =~ /^(?:Coord|Apos|Aux[SCP])$/
not $node $node->{"afun"} =~ /^(?:Coord|Apos|Aux[SCP])$/
Truth table0%0/3
not(A) or B
A= not $nodeB= $node->{"afun"} =~ /^(?:Coord|Apos|Aux[SCP])$/
ABresult
1X1
011
000
105 0 my @sons;
106 my $from;
107 0 ▶ $dive = sub { 0 } unless defined($dive);
Subroutine __ANON__: not called CC=1 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
unless defined $dive 0 0 0
108 0 push @sons,A_FilterEChildren($node,$dive,0,0);
109 0 ▶ if($node->{is_member}){
Branch: 1 branch
BranchTrueFalseTotal
if ($node->{"is_member"}) 0 0 0
110 0 my @oldsons=@sons;
111 0 ▶ while($node->{afun}!~/Coord|Apos|AuxS/ or $node->{is_member}){
Branch: 1 branch
BranchTrueFalseTotal
if (not $node->{"afun"} =~ /Coord|Apos|AuxS/ or $node->{"is_member"}) 0 0 0
Condition0%0/3
not $node->{"afun"} =~ /Coord|Apos|AuxS/ or $node->{"is_member"}
l!l&&r!l&&!r
000
MC/DC0%0/2
not $node->{"afun"} =~ /Coord|Apos|AuxS/ or $node->{"is_member"}
not $node->{"afun"} =~ /Coord|Apos|AuxS/ $node->{"is_member"}
Truth table0%0/3
not(A) or B
A= not $node->{"afun"} =~ /Coord|Apos|AuxS/B= $node->{"is_member"}
ABresult
1X1
011
000
112 0 $from=$node;$node=$node->parent;
113 0 push @sons,A_FilterEChildren($node,$dive,0,$from);
114 }
115 0 ▶ if ($node->{afun} eq 'AuxS'){
Branch: 1 branch
BranchTrueFalseTotal
if ($node->{"afun"} eq "AuxS") 0 0 0
116 0 print STDERR "Error: Missing Coord/Apos: $node->{id} ".ThisAddress($node)."\n";
117 0 @sons=@oldsons;
118 }
119 }
120 0 return @sons;
121 } # AGetEChildren
122  
123  
124  
125  
126 ######## T Layer
127  
128  
129 sub ExpandCoord {
130 0 ▶ my ($node,$keep)=@_;
Subroutine ExpandCoord: not called CC=4 SCAR=30.0
Pod documented
131 0 ▶ return unless $node;
Branch: 1 branch
BranchTrueFalseTotal
unless $node 0 0 0
132 0 ▶ if (IsCoord($node)) {
Branch: 1 branch
BranchTrueFalseTotal
if (IsCoord($node)) { } 0 0 0
133 return (($keep ? $node : ()),
134 0 map { ExpandCoord($_,$keep) }
135 0 ▶ grep { $_->{is_member} } $node->children);
Branch: 1 branch
BranchTrueFalseTotal
$keep ? : 0 0 0
136 } else {
137 0 return ($node);
138 }
139 } #ExpandCoord
140  
141  
142 sub IsCoord {
143 0 ▶ my $node=$_[0];# || $this;
Subroutine IsCoord: not called CC=3 SCAR=24.8
Pod documented
144 0 ▶ return 0 unless $node;
Branch: 1 branch
BranchTrueFalseTotal
unless $node 0 0 0
145 0 ▶ return 0 if $node->{nodetype} eq 'root'; # root does not have functor !!!
Branch: 1 branch
BranchTrueFalseTotal
if $node->{"nodetype"} eq "root" 0 0 0
146 0 return $node->{functor} =~ /ADVS|APPS|CONFR|CONJ|CONTRA|CSQ|DISJ|GRAD|OPER|REAS/;
147 }
148  
149  
150 sub TGetEParents {
151 0 ▶ my $node = $_[0];# || $this;
Subroutine TGetEParents: not called CC=10 SCAR=47.0
Pod documented
152 0 ▶ return() if IsCoord($node);
Branch: 1 branch
BranchTrueFalseTotal
if IsCoord($node) 0 0 0
153 0 ▶ if ($node and $node->{is_member}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($node and $node->{"is_member"}) 0 0 0
Condition0%0/3
$node and $node->{"is_member"}
!ll&&!rl&&r
000
MC/DC0%0/2
$node and $node->{"is_member"}
$node $node->{"is_member"}
Truth table0%0/3
A and B
A= $nodeB= $node->{"is_member"}
ABresult
0X0
100
111
154 0 ▶ while ($node and (!IsCoord($node) or $node->{is_member})) {
Branch: 1 branch
BranchTrueFalseTotal
if ($node and !IsCoord($node) || $node->{"is_member"}) 0 0 0
Condition0%0/6
$node and !IsCoord($node) || $node->{"is_member"}
!ll&&!rl&&r
000
not IsCoord($node) or $node->{"is_member"}
l!l&&r!l&&!r
000
MC/DC0%0/3
$node and !IsCoord($node) || $node->{"is_member"}
$node not IsCoord($node) $node->{"is_member"}
Truth table0%0/4
A and not(B) or C
A= $nodeB= not IsCoord($node)C= $node->{"is_member"}
ABCresult
0XX0
1000
11X1
1011
155 0 $node=$node->parent;
156 }
157 }
158 0 ▶ return () unless $node;
Branch: 1 branch
BranchTrueFalseTotal
unless $node 0 0 0
159 0 $node=$node->parent;
160 0 ▶ return () unless $node;
Branch: 1 branch
BranchTrueFalseTotal
unless $node 0 0 0
161 0 ▶ return ($node) if !IsCoord($node);
Branch: 1 branch
BranchTrueFalseTotal
unless IsCoord($node) 0 0 0
162 0 return (ExpandCoord($node));
163 } # TGetEParents
164  
165  
166 sub T_FilterEChildren { # node suff from
167 0 ▶ my ($node,$suff,$from)=@_;
Subroutine T_FilterEChildren: not called CC=14 SCAR=53.5
Pod undocumented
168 0 my @sons;
169 0 $node=$node->firstson;
170 0 ▶ while ($node) {
Branch: 1 branch
BranchTrueFalseTotal
if ($node) 0 0 0
171 # return @sons if $suff && @sons; #uncomment this line to get only first occurence
172 0 ▶ unless ($node==$from){ # on the way up do not go back down again
Branch: 1 branch
BranchTrueFalseTotal
unless ($node == $from) 0 0 0
173 0 ▶ if(($suff&&$node->{is_member})
Branch: 1 branch
BranchTrueFalseTotal
if ($suff and $node->{"is_member"} or not $suff || $node->{"is_member"}) 0 0 0
Condition0%0/9
$suff and $node->{"is_member"} or not $suff || $node->{"is_member"}
l!l&&r!l&&!r
000
$suff and $node->{"is_member"}
!ll&&!rl&&r
000
$suff || $node->{'is_member'}
l!l&&r!l&&!r
000
MC/DC0%0/4
$suff and $node->{"is_member"} or not $suff || $node->{"is_member"}
$suff $node->{"is_member"} $suff $node->{'is_member'}
Truth table0%0/7
A and B or not(C || D)
A= $suffB= $node->{"is_member"}C= $suffD= $node->{'is_member'}
ABCDresult
11XX1
0X001
10001
0X1X0
0X010
101X0
10010
174 ||(!$suff&&!$node->{is_member})){ # this we are looking for
175 0 ▶ push @sons,$node unless IsCoord($node);
Branch: 1 branch
BranchTrueFalseTotal
unless IsCoord($node) 0 0 0
176 }
177 push @sons,T_FilterEChildren($node,1,0)
178 if (!$suff
179 &&IsCoord($node)
180 &&!$node->{is_member})
181 or($suff
182 &&IsCoord($node)
183 0 ▶ &&$node->{is_member});
Branch: 1 branch
BranchTrueFalseTotal
if not $suff and IsCoord($node) and not $node->{"is_member"} or $suff and IsCoord($node) and $node->{"is_member"} 0 0 0
Condition0%0/15
not $suff and IsCoord($node) and not $node->{"is_member"} or $suff and IsCoord($node) and $node->{"is_member"}
l!l&&r!l&&!r
000
not $suff and IsCoord($node) and not $node->{"is_member"}
!ll&&!rl&&r
000
not $suff and IsCoord($node)
!ll&&!rl&&r
000
$suff and IsCoord($node) and $node->{"is_member"}
!ll&&!rl&&r
000
$suff and IsCoord($node)
!ll&&!rl&&r
000
MC/DC0%0/6
not $suff and IsCoord($node) and not $node->{"is_member"} or $suff and IsCoord($node) and $node->{"is_member"}
not $suff IsCoord($node) not $node->{"is_member"} $suff IsCoord($node) $node->{"is_member"}
Truth table0%0/13
not(A) and B and not(C) or D and E and F
A= not $suffB= IsCoord($node)C= not $node->{"is_member"}D= $suffE= IsCoord($node)F= $node->{"is_member"}
ABCDEFresult
111XXX1
0XX1111
10X1111
1101111
0XX0XX0
0XX10X0
0XX1100
10X0XX0
10X10X0
10X1100
1100XX0
11010X0
1101100
184 } # unless node == from
185 0 $node=$node->rbrother;
186 }
187 0 return @sons;
188 } # T_FilterEChildren
189  
190 sub TGetEChildren { # node
191 0 ▶ my $node=$_[0]; #||$this;
Subroutine TGetEChildren: not called CC=9 SCAR=45.0
Pod undocumented
192 0 ▶ return () if IsCoord($node);
Branch: 1 branch
BranchTrueFalseTotal
if IsCoord($node) 0 0 0
193 0 my @sons;
194 0 my $init_node=$node;# for error message
195 0 my $from;
196 0 push @sons,T_FilterEChildren($node,0,0);
197 0 ▶ if($node->{is_member}){
Branch: 1 branch
BranchTrueFalseTotal
if ($node->{"is_member"}) 0 0 0
198 0 my @oldsons=@sons;
199 0 ▶ while($node and $node->{nodetype} ne 'root'
Branch: 1 branch
BranchTrueFalseTotal
if ($node and $node->{"nodetype"} ne "root" and $node->{"is_member"} || !IsCoord($node)) 0 0 0
Condition0%0/9
$node and $node->{"nodetype"} ne "root" and $node->{"is_member"} || !IsCoord($node)
!ll&&!rl&&r
000
$node and $node->{"nodetype"} ne "root"
!ll&&!rl&&r
000
$node->{"is_member"} or not IsCoord($node)
l!l&&r!l&&!r
000
MC/DC0%0/4
$node and $node->{"nodetype"} ne "root" and $node->{"is_member"} || !IsCoord($node)
$node $node->{"nodetype"} ne "root" $node->{"is_member"} not IsCoord($node)
Truth table0%0/5
A and B and C or not(D)
A= $nodeB= $node->{"nodetype"} ne "root"C= $node->{"is_member"}D= not IsCoord($node)
ABCDresult
0XXX0
10XX0
11000
111X1
11011
200 and ($node->{is_member} || !IsCoord($node))){
201 0 $from=$node;$node=$node->parent;
202 0 ▶ push @sons,T_FilterEChildren($node,0,$from) if $node;
Branch: 1 branch
BranchTrueFalseTotal
if $node 0 0 0
203 }
204 0 ▶ if ($node->{nodetype} eq 'root'){
Branch: 1 branch
BranchTrueFalseTotal
if ($node->{"nodetype"} eq "root") 0 0 0
205 0 stderr("Error: Missing coordination head: $init_node->{id} $node->{id} ",ThisAddressNTRED($node),"\n");
206 0 @sons=@oldsons;
207 }
208 }
209 0 return @sons;
210 } # TGetEChildren
211  
212  
213  
214  
215 sub ThisAddress {
216 0 ▶ my ($node) = @_;
Subroutine ThisAddress: not called CC=2 SCAR=17.9
Pod undocumented
217 0 my $type = $node->type;
218 0 ▶ my ($id_attr) = $type && $type->find_members_by_role('#ID');
Condition0%0/3
$type && $type->find_members_by_role('#ID')
!ll&&!rl&&r
000
MC/DC0%0/2
$type && $type->find_members_by_role('#ID')
$type $type->find_members_by_role('#ID')
Truth table0%0/3
A && B
A= $typeB= $type->find_members_by_role('#ID')
ABresult
0X0
100
111
219  
220 0 return '#' . $node->{ $id_attr->get_name }
221 }
222  
223 sub ThisAddressNTRED {
224 0 ▶ my ($node) = @_;
Subroutine ThisAddressNTRED: not called CC=1 SCAR=6.9
Pod undocumented
225 0 return '#???'
226 }
227  
228 11 1;
229  
230 __END__
« blib/lib/PMLTQ/Commands.pm ↑ Summary blib/lib/PMLTQ/Relation/OrderIterator.pm »