Crop/Algorithm/TreeSortedPID/Tree.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 23 CC 1 SCAR 6.9
CC
1
Cov
0%
node_attr
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Crop::Algorithm::TreeSortedPID::Tree;
2 use base qw/ Crop::Object::Sequence /;
3  
4 =begin nd
5 Class: Crop::Algorithm::TreeSortedPID::Tree
6 =cut
7  
8 use v5.14;
9 use warnings;
10  
11 use Crop::Error;
12  
13 =begin nd
14 Method: node_attr ( )
15 Get attribute that presents node in tree.
16
17 Pure virtual.
18
19 Returns:
20 An error - since has not redefined in subclass
21 Attribute - if Ok
22 =cut
23 sub node_attr {
24 my $self = shift;
25
26 $self->Attributes->first(tree => 'node') or return warn 'ALGORITHM|ERR: No node for tree found';
27 }
28  
29 1;