blib/lib/Google/Auth/Stores/TokenStore.pm

filter: Statementstmt 68.4% 13 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 57.1% 4 / 7 Podpod 0.0% 0 / 3 totaltotal 58.6% 17 / 29 CC 1 SCAR 3.6
CC
1
Cov
68%
load
2.0
store
2.0
delete
2.0
CRAP 1.4
« blib/lib/Google/Auth/Exceptions.pm ↑ Summary XS.xs »
1 # Copyright 2026 Google LLC and contributors
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14  
15 package Google::Auth::Stores::TokenStore;
16  
17 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20 2 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
21 2 ▶use Google::Auth::Exceptions;
Subroutine BEGIN: called CC=1 SCAR=0.0
22  
23 0 ▶sub load {
Subroutine load: not called CC=1 SCAR=6.9
Pod undocumented
24 0 my ($self, $id) = @_;
25 0 Google::Auth::Error->throw('load must be implemented by subclasses');
26 }
27  
28 0 ▶sub store {
Subroutine store: not called CC=1 SCAR=6.9
Pod undocumented
29 0 my ($self, $id, $value) = @_;
30 0 Google::Auth::Error->throw('store must be implemented by subclasses');
31 }
32  
33 0 ▶sub delete {
Subroutine delete: not called CC=1 SCAR=6.9
Pod undocumented
34 0 my ($self, $id) = @_;
35 0 Google::Auth::Error->throw('delete must be implemented by subclasses');
36 }
37  
38 2 1;
« blib/lib/Google/Auth/Exceptions.pm ↑ Summary XS.xs »