API/Repo/Hooks.pm

filter: Statementstmt 85.7% 12 / 14 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 75.0% 3 / 4 Podpod 100% 1 / 1 totaltotal 66.6% 16 / 24 CC 2 SCAR 11.0
CC
2
Cov
71%
all
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.0
« API/Base.pm ↑ Summary API/Repo/Keys.pm »
1 #
2 # This file is part of GitHub-API
3 #
4 # This software is Copyright (c) 2013 by Chris Weyl.
5 #
6 # This is free software, licensed under:
7 #
8 # The GNU Lesser General Public License, Version 2.1, February 1999
9 #
10 package GitHub::API::Repo::Hooks;
11 {
12 5 $GitHub::API::Repo::Hooks::VERSION = '0.000000_03';
13 }
14  
15 # ABSTRACT: A list of a repository's hooks
16  
17 5 ▶use common::sense;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 5 ▶use autobox::JSON;
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20 5 ▶use parent 'GitHub::API::Base';
Subroutine BEGIN: called CC=1 SCAR=0.0
21  
22 #use aliased 'GitHub::API::Hook';
23  
24 # debugging...
25 #use Smart::Comments '###';
26  
27  
28 0 ▶sub all {
Subroutine all: not called CC=2 SCAR=17.9
Pod documented
29 0 my $self = shift @_;
30  
31 0 ▶ return $self->{_hooks} //= $self->_get;
Condition0%0/3
$self->{"_hooks"} //= $self->_get
l!l&&r!l&&!r
000
MC/DC0%0/2
$self->{"_hooks"} //= $self->_get
$self->{"_hooks"} $self->_get
Truth table0%0/3
A //= B
A= $self->{"_hooks"}B= $self->_get
ABresult
1X1
011
000
32 }
33  
34 5 !!42;
35  
36 __END__
« API/Base.pm ↑ Summary API/Repo/Keys.pm »