lib/Lingy/Clojure.pm

filter: Statementstmt 67.7% 21 / 31 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod 0.0% 0 / 2 totaltotal 64.2% 27 / 42 CC 3 SCAR 15.4
CC
3
Cov
64%
rep
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 4.7
« lib/Lingy/HashSet.pm ↑ Summary lib/Lingy/Character.pm »
1 53 ▶use strict; use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package Lingy::Clojure;
3  
4 53 ▶use Lingy::Common;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 53 ▶use Lingy::RT;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶sub require {
Subroutine require: called CC=1 SCAR=0.0
Pod undocumented
8 1 my ($sym) = @_;
9 1 $$sym =~ s/^clojure\./lingy./;
10 1 local $Lingy::RT::require_ext = 'clj';
11 53 ▶ no warnings 'redefine';
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 local *Lingy::RT::rep = \&rep;
13 1 Lingy::RT::require($sym);
14 }
15  
16 0 ▶sub rep {
Subroutine rep: not called CC=3 SCAR=24.8
Pod undocumented
17 0 my (undef, $text) = @_;
18 0 my ($expr) = RT->reader->read_str($text);
19 0 my ($undef, $file) = @$expr;
20 0 my $content = Lingy::RT::slurp("$file");
21 0 my (@forms) = RT->reader->read_str($content);
22 0 return;
23 0 for my $form (@forms) {
24 0 eval {
25 0 print "$form->[0] $form->[1]\n";
26 };
27 0 ▶ print "$form\n" if $@;
Branch: 1 branch
BranchTrueFalseTotal
if $@ 0 0 0
28 #eval { evaluate($form) }
29 }
30 }
31  
32 53 1;
« lib/Lingy/HashSet.pm ↑ Summary lib/Lingy/Character.pm »