Commands/Status.pm

filter: Statementstmt 61.1% 11 / 18 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 2 totaltotal 51.8% 14 / 27 CC 2 SCAR 10.4
CC
2
Cov
55%
execute
6.0
new
2.0
BEGIN
1.0
CRAP 2.8
« Escape.pm ↑ Summary ResultSet.pm »
1 # Copyright (C) 2021-2022 Horimoto Yasuhiro <horimoto@clear-code.com>
2 #
3 # This program is free software: you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation, either version 3 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program. If not, see <https://www.gnu.org/licenses/>.
15  
16 package Groonga::Commands::Status;
17  
18 1 ▶use Groonga::HTTP::Client;
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
21 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
22  
23 1 my $groonga_http_client = undef;
24  
25 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
26 0 my ($class, %arg) = @_;
27 0 my $self = {%arg};
28  
29 0 $groonga_http_client = $self->{client};
30  
31 0 return bless $self, $class;
32 }
33  
34 0 ▶sub execute {
Subroutine execute: not called CC=2 SCAR=17.9
Pod undocumented
35 0 ▶ if (defined $groonga_http_client) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $groonga_http_client) 0 0 0
36 0 return $groonga_http_client->send('status');
37 }
38 0 return;
39 }
40  
41 1 1;
« Escape.pm ↑ Summary ResultSet.pm »