Diff3/Factory.pm

filter: Statementstmt 97.5% 40 / 41 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 95.0% 19 / 20 Podpod 100% 10 / 10 totaltotal 97.1% 69 / 71 CC 1 SCAR 0.5
CC
1
Cov
98%
create_test
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« Diff3/Range3.pm ↑ Summary Diff3/List.pm »
1 package Text::Diff3::Factory;
2 # Factory for component style interface.
3 6 ▶use 5.006;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 6 ▶use version; our $VERSION = '0.08';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 6 ▶use Text::Diff3::Diff3;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 6 ▶use Text::Diff3::DiffHeckel;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 6 ▶use Text::Diff3::Text;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 6 ▶use Text::Diff3::Range2;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 6 ▶use Text::Diff3::Range3;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 6 ▶use Text::Diff3::List;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 # for user
17 5 ▶sub new { return $_[0] }
Subroutine new: called CC=1 SCAR=0.0
Pod documented
18 77 ▶sub create_text { return Text::Diff3::Text->new(@_) }
Subroutine create_text: called CC=1 SCAR=0.0
Pod documented
19 1 ▶sub create_diff3 { return Text::Diff3::Diff3->new(@_) }
Subroutine create_diff3: called CC=1 SCAR=0.0
Pod documented
20 22 ▶sub create_diff { return Text::Diff3::DiffHeckel->new(@_) }
Subroutine create_diff: called CC=1 SCAR=0.0
Pod documented
21  
22 # for internal use
23 22 ▶sub create_list3 { return Text::Diff3::List->new(@_) }
Subroutine create_list3: called CC=1 SCAR=0.0
Pod documented
24 36 ▶sub create_range3 { return Text::Diff3::Range3->new(@_) }
Subroutine create_range3: called CC=1 SCAR=0.0
Pod documented
25 22 ▶sub create_null_range3 {
Subroutine create_null_range3: called CC=1 SCAR=0.0
Pod documented
26 22 return Text::Diff3::Range3->new($_[0], undef, 0,0, 0,0, 0,0)
27 }
28 49 ▶sub create_list2 { return Text::Diff3::List->new(@_) }
Subroutine create_list2: called CC=1 SCAR=0.0
Pod documented
29 55 ▶sub create_range2 { return Text::Diff3::Range2->new(@_) }
Subroutine create_range2: called CC=1 SCAR=0.0
Pod documented
30 0 ▶sub create_test { return Text::Diff3::Base->new(@_) }
Subroutine create_test: not called CC=1 SCAR=6.9
Pod documented
31  
32 6 1;
33  
34 __END__
« Diff3/Range3.pm ↑ Summary Diff3/List.pm »