V1.pm untested

filter: Statementstmt 0.0% 0 / 33 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 8 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 52 CC 3 SCAR 12.8
CC
3
Cov
0%
BUILD
6.0
call_rpc
6.0
BEGIN
2.0
CRAP 3.6
1 # Copyright (C) 2026 Google LLC
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::Cloud::Bigquery::Storage::V1;
16  
17 use strict;
18 use warnings;
19  
20 our $VERSION = '0.03';
21 use Moo;
22 use Google::gRPC::Client;
23 use Google::Auth;
24 use Carp qw(croak);
25 has credentials => ( is => 'ro', required => 0 );
26 has transport => ( is => 'rw' );
27  
28 sub BUILD {
29 my ($self) = @_;
30  
31 my $auth = $self->credentials;
32 if (!$auth || !eval { $auth->can('get_token') }) {
33 $auth = Google::Auth->default();
34 }
35 my $token = $auth->get_token();
36  
37 my $client = Google::gRPC::Client->new(
38 target => 'bigquerystorage.googleapis.com:443',
39 auth_token => $token,
40 );
41 $self->transport($client);
42 }
43  
44 sub call_rpc {
45 my ($self, $method, $request_msg, $response_class) = @_;
46 croak 'transport not initialized' unless $self->transport;
47 return $self->transport->call_unary($method, $request_msg, $response_class);
48 }
49  
50 1;
51  
52 __END__