VAST/term__S_identifier.pm untested

filter: Statementstmt 0.0% 0 / 22 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 30 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use MooseX::Declare;
2 use utf8;
3 class VAST::term__S_identifier {
4 use Mildew::AST::Helpers;
5 method emit_m0ld {
6 my $id = $self->{identifier}{TEXT};
7 if ($id eq 'INFERRED-TYPE-TEST') {
8 use Data::Dumper;
9 my @args = $self->{args}->emit_m0ld;
10 if ($args[1]->isa('Mildew::AST::StringConstant')) {
11 fcall '&ok' => [Mildew::AST::InferredTypeTest->new(value=>$args[0],test=>$args[1]->value)];
12 } else {
13 die 'the test argument to INFERED-TYPE-TEST must be a string constant';
14 }
15 } else {
16 fcall '&'.$id => named_and_positional($self->{args}->emit_m0ld);
17 }
18 }
19 }