Graph/Traversal/DFS.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 2 totaltotal 92.5% 25 / 27 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Graph/Traversal/BFS.pm ↑ Summary Graph/Directed.pm »
1 package Graph::Traversal::DFS;
2  
3 12 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 12 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 12 ▶use Graph::Traversal;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 12 ▶use base 'Graph::Traversal';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 2287 ▶sub current {
Subroutine current: called CC=1 SCAR=0.0
Pod undocumented
10 2287 my $self = shift;
11 2287 $self->{ order }->[ -1 ];
12 }
13  
14 1280 ▶sub see {
Subroutine see: called CC=1 SCAR=0.0
Pod undocumented
15 1280 my $self = shift;
16 1280 pop @{ $self->{ order } };
17 }
18  
19 12 *dfs = \&Graph::Traversal::postorder;
20  
21 12 1;
22 __END__
« Graph/Traversal/BFS.pm ↑ Summary Graph/Directed.pm »