PDF/Devel/TestHelper.pm

filter: Statementstmt 83.3% 10 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 87.5% 14 / 16 CC 1 SCAR 0.7
CC
1
Cov
83%
BEGIN
1.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« PDF/Document.pm ↑ Summary
1 1 ▶use Renard::Incunabula::Common::Setup;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package Renard::Block::Format::PDF::Devel::TestHelper;
3 # ABSTRACT: A test helper with functions useful for testing PDF documents
4 $Renard::Block::Format::PDF::Devel::TestHelper::VERSION = '0.005';
5 1 ▶use Renard::Incunabula::Common::Types qw(InstanceOf);
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶use Renard::Incunabula::Devel::TestHelper;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 0 ▶use Renard::Block::Format::PDF::Document;
Subroutine BEGIN: called CC=1 SCAR=2.6
9  
10 classmethod pdf_reference_document_path() {
11 Renard::Incunabula::Devel::TestHelper->test_data_directory->child(qw(PDF Adobe pdf_reference_1-7.pdf));
12 }
13  
14 classmethod pdf_reference_document_object() :ReturnType(InstanceOf['Renard::Block::Format::PDF::Document']) {
15 Renard::Block::Format::PDF::Document->new(
16 filename => $class->pdf_reference_document_path
17 );
18 }
19  
20 1;
21  
22 __END__
« PDF/Document.pm ↑ Summary