| 1 | package IO::Concurrent; | ||||||||||||
| 2 | 1 | ▶ | use 5.008001; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 3 | 1 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 4 | 1 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 5 | |||||||||||||
| 6 | 1 | our $VERSION = "0.01"; | |||||||||||
| 7 | |||||||||||||
| 8 | 1 | ▶ | use IO::Concurrent::Runner; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 9 | |||||||||||||
| 10 | 0 | ▶ | sub new { | ||||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||
| 11 | 0 | my ($class, %args) = @_; | |||||||||||
| 12 | 0 | ▶ | $args{engine} ||= 'Select'; | ||||||||||
|
Condition0%0/2
$args{"engine"} ||= "Select"
MC/DC0%0/1
$args{"engine"} ||= "Select"
$args{"engine"}
Truth table0%0/2
A
A= $args{"engine"}
| |||||||||||||
| 13 | 0 | return bless \%args => $class; | |||||||||||
| 14 | } | ||||||||||||
| 15 | |||||||||||||
| 16 | 0 | ▶ | sub run { | ||||||||||
|
Subroutine
run: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||
| 17 | 0 | my ($self, $scenario) = @_; | |||||||||||
| 18 | 0 | my @contexts = map { $scenario->create_context($_) } @{ $self->{handlers} }; | |||||||||||
| 19 | 0 | my $runner = $self->_create_runner(\@contexts, { | |||||||||||
| 20 | on_error => $scenario->on_error, | ||||||||||||
| 21 | }); | ||||||||||||
| 22 | 0 | $runner->run(); | |||||||||||
| 23 | } | ||||||||||||
| 24 | |||||||||||||
| 25 | 0 | ▶ | sub _create_runner { | ||||||||||
|
Subroutine
_create_runner: not called CC=1 SCAR=6.9
| |||||||||||||
| 26 | 0 | my $self = shift; | |||||||||||
| 27 | 0 | return IO::Concurrent::Runner->engine($self->{engine})->new(@_); | |||||||||||
| 28 | } | ||||||||||||
| 29 | |||||||||||||
| 30 | 1 | 1; | |||||||||||
| 31 | __END__ | ||||||||||||