Update vendored library google.golang.org/api
This commit is contained in:
parent
5b6568875c
commit
c0960f538f
363 changed files with 581827 additions and 452273 deletions
5
vendor/google.golang.org/api/internal/settings_test.go
generated
vendored
5
vendor/google.golang.org/api/internal/settings_test.go
generated
vendored
|
@ -22,6 +22,7 @@ import (
|
|||
"google.golang.org/grpc"
|
||||
|
||||
"golang.org/x/oauth2"
|
||||
"golang.org/x/oauth2/google"
|
||||
)
|
||||
|
||||
func TestSettingsValidate(t *testing.T) {
|
||||
|
@ -32,6 +33,7 @@ func TestSettingsValidate(t *testing.T) {
|
|||
{Scopes: []string{"s"}},
|
||||
{CredentialsFile: "f"},
|
||||
{TokenSource: dummyTS{}},
|
||||
{CredentialsFile: "f", TokenSource: dummyTS{}}, // keep for backwards compatibility
|
||||
{HTTPClient: &http.Client{}},
|
||||
{GRPCConn: &grpc.ClientConn{}},
|
||||
// Although NoAuth and Scopes are technically incompatible, too many
|
||||
|
@ -50,6 +52,9 @@ func TestSettingsValidate(t *testing.T) {
|
|||
{NoAuth: true, APIKey: "x"},
|
||||
{NoAuth: true, CredentialsFile: "f"},
|
||||
{NoAuth: true, TokenSource: dummyTS{}},
|
||||
{NoAuth: true, Credentials: &google.DefaultCredentials{}},
|
||||
{Credentials: &google.DefaultCredentials{}, CredentialsFile: "f"},
|
||||
{Credentials: &google.DefaultCredentials{}, TokenSource: dummyTS{}},
|
||||
{HTTPClient: &http.Client{}, GRPCConn: &grpc.ClientConn{}},
|
||||
{HTTPClient: &http.Client{}, GRPCDialOpts: []grpc.DialOption{grpc.WithInsecure()}},
|
||||
} {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue