| 1 | package Template::Benchmark::Engine; | ||||||||||||||||||||
| 2 | |||||||||||||||||||||
| 3 | 2 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | 2 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 5 | |||||||||||||||||||||
| 6 | 2 | our $VERSION = '1.09_01'; | |||||||||||||||||||
| 7 | 2 | our %feature_syntaxes = (); | |||||||||||||||||||
| 8 | |||||||||||||||||||||
| 9 | sub feature_syntax | ||||||||||||||||||||
| 10 | 0 | ▶ | { | ||||||||||||||||||
|
Subroutine
feature_syntax: not called CC=3 SCAR=20.6
Pod
documented
| |||||||||||||||||||||
| 11 | 0 | my ( $self, $feature_name ) = @_; | |||||||||||||||||||
| 12 | 0 | my ( $pkg, %their_syntaxes ); | |||||||||||||||||||
| 13 | |||||||||||||||||||||
| 14 | 0 | ▶ | $pkg = ref( $self ) || $self; | ||||||||||||||||||
|
Condition0%0/3
ref $self || $self
MC/DC0%0/2
ref $self || $self
ref $self
$self
Truth table0%0/3
A || B
A= ref $selfB= $self
| |||||||||||||||||||||
| 15 | |||||||||||||||||||||
| 16 | { | ||||||||||||||||||||
| 17 | 0 | ▶ | no strict 'refs'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.2
| |||||||||||||||||||||
| 18 | 0 | %their_syntaxes = %{"${pkg}::feature_syntaxes"}; | |||||||||||||||||||
| 19 | } | ||||||||||||||||||||
| 20 | |||||||||||||||||||||
| 21 | 0 | ▶ | return( undef ) unless %their_syntaxes; | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 22 | 0 | return( $their_syntaxes{ $feature_name } ); | |||||||||||||||||||
| 23 | } | ||||||||||||||||||||
| 24 | |||||||||||||||||||||
| 25 | sub preprocess_template | ||||||||||||||||||||
| 26 | 0 | ▶ | { | ||||||||||||||||||
|
Subroutine
preprocess_template: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||
| 27 | 0 | my ( $self, $template ) = @_; | |||||||||||||||||||
| 28 | |||||||||||||||||||||
| 29 | 0 | return( $template ); | |||||||||||||||||||
| 30 | } | ||||||||||||||||||||
| 31 | |||||||||||||||||||||
| 32 | sub benchmark_descriptions | ||||||||||||||||||||
| 33 | 0 | ▶ | { | ||||||||||||||||||
|
Subroutine
benchmark_descriptions: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||
| 34 | 0 | return( {} ); | |||||||||||||||||||
| 35 | } | ||||||||||||||||||||
| 36 | |||||||||||||||||||||
| 37 | sub benchmark_functions_for_uncached_string | ||||||||||||||||||||
| 38 | 0 | ▶ | { | ||||||||||||||||||
|
Subroutine
benchmark_functions_for_uncached_string: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||
| 39 | 0 | my ( $self ) = @_; | |||||||||||||||||||
| 40 | |||||||||||||||||||||
| 41 | 0 | return( undef ); | |||||||||||||||||||
| 42 | } | ||||||||||||||||||||
| 43 | |||||||||||||||||||||
| 44 | sub benchmark_functions_for_uncached_disk | ||||||||||||||||||||
| 45 | 0 | ▶ | { | ||||||||||||||||||
|
Subroutine
benchmark_functions_for_uncached_disk: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||
| 46 | 0 | my ( $self ) = @_; | |||||||||||||||||||
| 47 | |||||||||||||||||||||
| 48 | 0 | return( undef ); | |||||||||||||||||||
| 49 | } | ||||||||||||||||||||
| 50 | |||||||||||||||||||||
| 51 | sub benchmark_functions_for_disk_cache | ||||||||||||||||||||
| 52 | 0 | ▶ | { | ||||||||||||||||||
|
Subroutine
benchmark_functions_for_disk_cache: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||
| 53 | 0 | my ( $self, $template_dir, $cache_dir ) = @_; | |||||||||||||||||||
| 54 | |||||||||||||||||||||
| 55 | 0 | return( undef ); | |||||||||||||||||||
| 56 | } | ||||||||||||||||||||
| 57 | |||||||||||||||||||||
| 58 | sub benchmark_functions_for_shared_memory_cache | ||||||||||||||||||||
| 59 | 0 | ▶ | { | ||||||||||||||||||
|
Subroutine
benchmark_functions_for_shared_memory_cache: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||
| 60 | 0 | my ( $self, $template_dir, $cache_dir ) = @_; | |||||||||||||||||||
| 61 | |||||||||||||||||||||
| 62 | 0 | return( undef ); | |||||||||||||||||||
| 63 | } | ||||||||||||||||||||
| 64 | |||||||||||||||||||||
| 65 | sub benchmark_functions_for_memory_cache | ||||||||||||||||||||
| 66 | 0 | ▶ | { | ||||||||||||||||||
|
Subroutine
benchmark_functions_for_memory_cache: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||
| 67 | 0 | my ( $self, $template_dir, $cache_dir ) = @_; | |||||||||||||||||||
| 68 | |||||||||||||||||||||
| 69 | 0 | return( undef ); | |||||||||||||||||||
| 70 | } | ||||||||||||||||||||
| 71 | |||||||||||||||||||||
| 72 | sub syntax_type | ||||||||||||||||||||
| 73 | 0 | ▶ | { | ||||||||||||||||||
|
Subroutine
syntax_type: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||
| 74 | 0 | return( undef ); | |||||||||||||||||||
| 75 | } | ||||||||||||||||||||
| 76 | |||||||||||||||||||||
| 77 | sub pure_perl | ||||||||||||||||||||
| 78 | 0 | ▶ | { | ||||||||||||||||||
|
Subroutine
pure_perl: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||
| 79 | 0 | return( undef ); | |||||||||||||||||||
| 80 | } | ||||||||||||||||||||
| 81 | |||||||||||||||||||||
| 82 | 2 | 1; | |||||||||||||||||||
| 83 | |||||||||||||||||||||
| 84 | __END__ | ||||||||||||||||||||