Grammar/Rule/Edge.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 2 totaltotal 88.8% 16 / 18 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
new
1.0
CRAP 1.0
« Grammar.pm ↑ Summary Grammar/Rule/NoMoreVertices.pm »
1 package Graph::Grammar::Rule::Edge;
2  
3 # ABSTRACT: Rule to be evaluated on graph edges
4 2 our $VERSION = '0.2.0'; # VERSION
5  
6 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 sub new
10 1 ▶{
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
11 1 my( $class, $code ) = @_;
12 1 return bless { code => $code }, $class;
13 }
14  
15 sub matches
16 13 ▶{
Subroutine matches: called CC=1 SCAR=0.0
Pod undocumented
17 13 my $self = shift;
18 13 return $self->{code}->( @_ );
19 }
20  
21 2 1;
« Grammar.pm ↑ Summary Grammar/Rule/NoMoreVertices.pm »