File Coverage

blib/lib/Dallycot/AST/Placeholder.pm
Criterion Covered Total %
statement 12 18 66.6
branch n/a
condition n/a
subroutine 4 7 57.1
pod 0 3 0.0
total 16 28 57.1


line stmt bran cond sub pod time code
1             package Dallycot::AST::Placeholder;
2             our $AUTHORITY = 'cpan:JSMITH';
3              
4             # ABSTRACT: A no-op placeholder in function calls
5              
6 23     23   12023 use strict;
  23         38  
  23         700  
7 23     23   89 use warnings;
  23         25  
  23         482  
8              
9 23     23   88 use utf8;
  23         24  
  23         108  
10 23     23   448 use parent 'Dallycot::AST';
  23         31  
  23         135  
11              
12 0     0 0   sub to_string { return "_" }
13              
14             sub to_rdf {
15 0     0 0   my($self, $model) = @_;
16              
17 0           my $bnode = $model -> bnode;
18 0           $model -> add_type($bnode, 'loc:Placeholder');
19 0           return $bnode;
20             }
21              
22             sub new {
23 0     0 0   return bless [] => __PACKAGE__;
24             }
25              
26             1;