| 1 | # ABSTRACT: Exception class for Git::Native | ||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||
| 3 | package Git::Native::Error; | ||||||||||||||||||||||||||||
| 4 | 1 | ▶ | use Moo; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 5 | 1 | extends 'Throwable::Error'; | |||||||||||||||||||||||||||
| 6 | |||||||||||||||||||||||||||||
| 7 | 1 | has code => ( is => 'ro', required => 1 ); | |||||||||||||||||||||||||||
| 8 | 1 | has klass => ( is => 'ro', default => 0 ); | |||||||||||||||||||||||||||
| 9 | |||||||||||||||||||||||||||||
| 10 | around BUILDARGS => sub { | ||||||||||||||||||||||||||||
| 11 | 3 | ▶ | my ( $orig, $class, @args ) = @_; | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=4 SCAR=15.2
| |||||||||||||||||||||||||||||
| 12 | 3 | ▶ | my %args = @args == 1 && ref $args[0] ? %{ $args[0] } : @args; | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
@args == 1 and ref $args[0]
MC/DC0%0/2
@args == 1 and ref $args[0]
@args == 1
ref $args[0]
Truth table33%1/3
A and B
A= @args == 1B= ref $args[0]
| |||||||||||||||||||||||||||||
| 13 | 3 | ▶ | $args{message} //= '<unknown libgit2 error>'; | ||||||||||||||||||||||||||
|
Condition100%2/2
$args{"message"} //= "<unknown libgit2 error>"
MC/DC100%1/1
$args{"message"} //= "<unknown libgit2 error>"
$args{"message"}
Truth table100%2/2
A
A= $args{"message"}
| |||||||||||||||||||||||||||||
| 14 | 3 | return $class->$orig(\%args); | |||||||||||||||||||||||||||
| 15 | 1 | }; | |||||||||||||||||||||||||||
| 16 | |||||||||||||||||||||||||||||
| 17 | 1 | 1; | |||||||||||||||||||||||||||
| 18 | |||||||||||||||||||||||||||||
| 19 | __END__ | ||||||||||||||||||||||||||||