Role/ReadMetaDir.pm

filter: Statementstmt 66.6% 14 / 21 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod n/a totaltotal 58.6% 17 / 29 CC 4 SCAR 24.7
CC
4
Cov
56%
__ANON__
20.0
BEGIN
1.0
BEGIN
1.0
CRAP 11.9
« Role/WriteChanges.pm ↑ Summary Role/AddExternalRDF.pm »
1 package Dist::Inkt::Role::ReadMetaDir;
2  
3 1 our $AUTHORITY = 'cpan:TOBYINK';
4 1 our $VERSION = '0.110';
5  
6 1 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use RDF::TrineX::Functions 'parse';
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 with 'Dist::Inkt::Role::RDFModel';
11  
12 0 ▶after PopulateModel => sub {
Subroutine __ANON__: not called CC=4 SCAR=30.0
13 0 my $self = shift;
14 0 for my $file ($self->sourcefile('meta')->children)
15 {
16 0 ▶ next unless $file =~ /\.(pret|pretdsl|ttl|turtle|nt|ntriples|rdf|rdfx)$/i;
Branch: 1 branch
BranchTrueFalseTotal
unless $file =~ /\.(pret|pretdsl|ttl|turtle|nt|ntriples|rdf|rdfx)$/i 0 0 0
17
18 0 $self->log('Reading %s', $file);
19 $file =~ /\.pret$/
20 0 ▶ ? do {
Branch: 1 branch
BranchTrueFalseTotal
$file =~ /\.pret$/ ? : 0 0 0
21 0 require RDF::TrineX::Parser::Pretdsl;
22 0 parse($file, into => $self->model, using => 'RDF::TrineX::Parser::Pretdsl'->new)
23 }: parse($file, into => $self->model);
24 }
25 1 };
26  
27 1 1;
« Role/WriteChanges.pm ↑ Summary Role/AddExternalRDF.pm »