line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::Run::Straps::Base; |
2
|
|
|
|
|
|
|
|
3
|
14
|
|
|
14
|
|
8107
|
use strict; |
|
14
|
|
|
|
|
32
|
|
|
14
|
|
|
|
|
397
|
|
4
|
14
|
|
|
14
|
|
71
|
use warnings; |
|
14
|
|
|
|
|
27
|
|
|
14
|
|
|
|
|
431
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
=head1 NAME |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
Test::Run::Straps::Base - base class for some Straps-related classes. |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 DESCRIPTION |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
This class serves to abstract the common functionality between |
13
|
|
|
|
|
|
|
L<Test::Run::Straps> and L<Test::Run::Straps::StrapsTotalsObj>. |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=cut |
16
|
|
|
|
|
|
|
|
17
|
14
|
|
|
14
|
|
72
|
use Moose; |
|
14
|
|
|
|
|
26
|
|
|
14
|
|
|
|
|
77
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
extends('Test::Run::Base::Struct'); |
20
|
|
|
|
|
|
|
|
21
|
14
|
|
|
14
|
|
79747
|
use Test::Run::Straps::EventWrapper; |
|
14
|
|
|
|
|
34
|
|
|
14
|
|
|
|
|
428
|
|
22
|
|
|
|
|
|
|
|
23
|
14
|
|
|
14
|
|
74
|
use vars qw(@fields); |
|
14
|
|
|
|
|
28
|
|
|
14
|
|
|
|
|
1471
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
has '_event' => (is => "rw", isa => "Maybe[Test::Run::Straps::EventWrapper]"); |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub _is_event_pass |
28
|
|
|
|
|
|
|
{ |
29
|
409
|
|
|
409
|
|
648
|
my $self = shift; |
30
|
|
|
|
|
|
|
|
31
|
409
|
|
|
|
|
10268
|
return $self->_event->is_pass(); |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 LICENSE |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
This file is licensed under the MIT X11 License: |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
http://www.opensource.org/licenses/mit-license.php |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 AUTHOR |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
Shlomi Fish, L<http://www.shlomifish.org/> . |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=cut |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
1; |
47
|
|
|
|
|
|
|
|