Run/Straps/Base.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 26 / 26 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Run/Obj.pm ↑ Summary Run/Straps/StrapsDetailsObj.pm »
1 package Test::Run::Straps::Base;
2  
3 15 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 15 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
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 15 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
18  
19 15 extends('Test::Run::Base::Struct');
20  
21 15 ▶use Test::Run::Straps::EventWrapper;
Subroutine BEGIN: called CC=1 SCAR=0.0
22  
23 15 ▶use vars qw(@fields);
Subroutine BEGIN: called CC=1 SCAR=0.0
24  
25 15 has '_event' => (is => "rw", isa => "Maybe[Test::Run::Straps::EventWrapper]");
26  
27 sub _is_event_pass
28 409 ▶{
Subroutine _is_event_pass: called CC=1 SCAR=0.0
29 409 my $self = shift;
30  
31 409 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 15 1;
47  
« Run/Obj.pm ↑ Summary Run/Straps/StrapsDetailsObj.pm »