| 1 | 1 | ▶ | use 5.008; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | package Class::Scaffold::App::Test::Classes; | ||
| 6 | 1 | ▶ | BEGIN { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | $Class::Scaffold::App::Test::Classes::VERSION = '1.102280'; | |
| 8 | } | ||
| 9 | # ABSTRACT: Base class for companion test classes | ||
| 10 | 1 | ▶ | use FindBin '$Bin'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 1 | ▶ | use Test::More; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | 1 | ▶ | use Test::CompanionClasses::Engine; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | 1 | ▶ | use parent 'Class::Scaffold::App::Test'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | 1 | __PACKAGE__->mk_array_accessors(qw(inherited))->mk_scalar_accessors(qw(lib)); | |
| 15 | 1 | ▶ | use constant DEFAULTS => (lib => "$Bin/../lib",); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | 1 | ▶ | use constant GETOPT => ('exact'); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | |||
| 18 | 0 | ▶ | sub app_code { |
|
Subroutine
app_code: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 19 | 0 | my $self = shift; | |
| 20 | 0 | $self->SUPER::app_code(@_); | |
| 21 | Test::CompanionClasses::Engine->new->run_tests( | ||
| 22 | exact => $self->opt->{exact}, | ||
| 23 | 0 | lib => $self->lib, | |
| 24 | filter => [@ARGV], | ||
| 25 | inherited => [ $self->inherited ], | ||
| 26 | ); | ||
| 27 | } | ||
| 28 | 1 | 1; | |
| 29 | |||
| 30 | __END__ | ||