mirror of
https://github.com/rclone/rclone.git
synced 2025-12-24 04:04:37 +00:00
vendor: update all dependencies to latest versions
This commit is contained in:
14
vendor/google.golang.org/api/option/option_test.go
generated
vendored
14
vendor/google.golang.org/api/option/option_test.go
generated
vendored
@@ -45,7 +45,7 @@ func TestApply(t *testing.T) {
|
||||
WithScopes("https://example.com/auth/helloworld", "https://example.com/auth/otherthing"),
|
||||
WithGRPCConn(conn),
|
||||
WithUserAgent("ua"),
|
||||
WithServiceAccountFile("service-account.json"),
|
||||
WithCredentialsFile("service-account.json"),
|
||||
WithAPIKey("api-key"),
|
||||
}
|
||||
var got internal.DialSettings
|
||||
@@ -53,12 +53,12 @@ func TestApply(t *testing.T) {
|
||||
opt.Apply(&got)
|
||||
}
|
||||
want := internal.DialSettings{
|
||||
Scopes: []string{"https://example.com/auth/helloworld", "https://example.com/auth/otherthing"},
|
||||
UserAgent: "ua",
|
||||
Endpoint: "https://example.com:443",
|
||||
GRPCConn: conn,
|
||||
ServiceAccountJSONFilename: "service-account.json",
|
||||
APIKey: "api-key",
|
||||
Scopes: []string{"https://example.com/auth/helloworld", "https://example.com/auth/otherthing"},
|
||||
UserAgent: "ua",
|
||||
Endpoint: "https://example.com:443",
|
||||
GRPCConn: conn,
|
||||
CredentialsFile: "service-account.json",
|
||||
APIKey: "api-key",
|
||||
}
|
||||
if !reflect.DeepEqual(got, want) {
|
||||
t.Errorf("\ngot %#v\nwant %#v", got, want)
|
||||
|
||||
Reference in New Issue
Block a user