MyConText/File.pm

filter: Statementstmt 50.0% 11 / 22 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 100% 1 / 1 totaltotal 51.7% 15 / 29 CC 2 SCAR 11.0
CC
2
Cov
46%
index_document
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.0
« MyConText/URL.pm ↑ Summary MyConText/TestConfig.pm »
1  
2 package MyConText::File;
3 1 ▶use MyConText::String;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use vars qw! @ISA !;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 @ISA = qw! MyConText::String !;
7  
8 0 ▶sub index_document {
Subroutine index_document: not called CC=2 SCAR=17.9
Pod documented
9 0 my ($self, $file) = @_;
10 0 my $dbh = $self->{'dbh'};
11  
12 0 ▶ open FILE, $file or do {
Branch: 1 branch
BranchTrueFalseTotal
open FILE, $file or do { $self->{"errstr"} = "Reading the file `${file}' failed: $!"; return } 0 0 0
13 0 $self->{'errstr'} = "Reading the file `$file' failed: $!";
14 0 return;
15 };
16 0 my $data;
17 {
18 0 local $/ = undef;
19 0 $data = <FILE>;
20 }
21 0 close FILE;
22 0 $self->SUPER::index_document($file, $data);
23 }
24  
25 1 1;
26  
« MyConText/URL.pm ↑ Summary MyConText/TestConfig.pm »