mirror of
https://github.com/rclone/rclone.git
synced 2025-12-22 11:13:23 +00:00
vendor: update all dependencies
This commit is contained in:
8
vendor/google.golang.org/api/option/option_test.go
generated
vendored
8
vendor/google.golang.org/api/option/option_test.go
generated
vendored
@@ -15,9 +15,11 @@
|
||||
package option
|
||||
|
||||
import (
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/google/go-cmp/cmp"
|
||||
"github.com/google/go-cmp/cmp/cmpopts"
|
||||
"golang.org/x/oauth2/google"
|
||||
"google.golang.org/api/internal"
|
||||
"google.golang.org/grpc"
|
||||
)
|
||||
@@ -46,6 +48,7 @@ func TestApply(t *testing.T) {
|
||||
WithGRPCConn(conn),
|
||||
WithUserAgent("ua"),
|
||||
WithCredentialsFile("service-account.json"),
|
||||
WithCredentials(&google.DefaultCredentials{ProjectID: "p"}),
|
||||
WithAPIKey("api-key"),
|
||||
}
|
||||
var got internal.DialSettings
|
||||
@@ -57,10 +60,11 @@ func TestApply(t *testing.T) {
|
||||
UserAgent: "ua",
|
||||
Endpoint: "https://example.com:443",
|
||||
GRPCConn: conn,
|
||||
Credentials: &google.DefaultCredentials{ProjectID: "p"},
|
||||
CredentialsFile: "service-account.json",
|
||||
APIKey: "api-key",
|
||||
}
|
||||
if !reflect.DeepEqual(got, want) {
|
||||
if !cmp.Equal(got, want, cmpopts.IgnoreUnexported(grpc.ClientConn{})) {
|
||||
t.Errorf("\ngot %#v\nwant %#v", got, want)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user