| 1 | package Test::DescribeMe; | ||||||||||
| 2 | { | ||||||||||
| 3 | 12 | $Test::DescribeMe::VERSION = '0.004'; | |||||||||
| 4 | } | ||||||||||
| 5 | |||||||||||
| 6 | 12 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 12 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 12 | ▶ | use Test::Settings qw(:all); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | |||||||||||
| 11 | my %types = ( | ||||||||||
| 12 | 'smoke' => \&want_smoke, | ||||||||||
| 13 | 4 | ▶ | 'interactive' => sub { ! want_non_interactive, }, | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 14 | 12 | 'extended' => \&want_extended, | |||||||||
| 15 | 'author' => \&want_author, | ||||||||||
| 16 | 'release' => \&want_release, | ||||||||||
| 17 | ); | ||||||||||
| 18 | |||||||||||
| 19 | 12 | ▶ | sub import { | ||||||||
|
Subroutine
import: called CC=4 SCAR=14.5
| |||||||||||
| 20 | 12 | my ($pkg, @arg) = @_; | |||||||||
| 21 | |||||||||||
| 22 | 12 | for my $type (@arg) { | |||||||||
| 23 | 12 | ▶ | unless ($types{$type}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 24 | 0 | require Carp; | |||||||||
| 25 | 0 | Carp::croak("Test type '$type' not known"); | |||||||||
| 26 | } | ||||||||||
| 27 | |||||||||||
| 28 | 12 | ▶ | unless ($types{$type}->()) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 29 | 7 | require Test::More; | |||||||||
| 30 | 7 | Test::More::plan(skip_all => "Not running $type tests"); | |||||||||
| 31 | } | ||||||||||
| 32 | } | ||||||||||
| 33 | } | ||||||||||
| 34 | |||||||||||
| 35 | 12 | 1; | |||||||||
| 36 | __END__ | ||||||||||