| 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
MC/DC0%0/2
$self->{"_hooks"} //= $self->_get
$self->{"_hooks"}
$self->_get
Truth table0%0/3
A //= B
A= $self->{"_hooks"}B= $self->_get
| |||||||||||||||||||||
| 32 | } | ||||||||||||||||||||
| 33 | |||||||||||||||||||||
| 34 | 5 | !!42; | |||||||||||||||||||
| 35 | |||||||||||||||||||||
| 36 | __END__ | ||||||||||||||||||||