Bump prometheus/client_golang to v1.13.0
This commit is contained in:
9
vendor/github.com/google/go-cmp/cmp/cmpopts/equate.go
generated
vendored
9
vendor/github.com/google/go-cmp/cmp/cmpopts/equate.go
generated
vendored
@@ -6,6 +6,7 @@
|
||||
package cmpopts
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"math"
|
||||
"reflect"
|
||||
"time"
|
||||
@@ -111,7 +112,7 @@ type timeApproximator struct {
|
||||
|
||||
func (a timeApproximator) compare(x, y time.Time) bool {
|
||||
// Avoid subtracting times to avoid overflow when the
|
||||
// difference is larger than the largest representible duration.
|
||||
// difference is larger than the largest representable duration.
|
||||
if x.After(y) {
|
||||
// Ensure x is always before y
|
||||
x, y = y, x
|
||||
@@ -146,3 +147,9 @@ func areConcreteErrors(x, y interface{}) bool {
|
||||
_, ok2 := y.(error)
|
||||
return ok1 && ok2
|
||||
}
|
||||
|
||||
func compareErrors(x, y interface{}) bool {
|
||||
xe := x.(error)
|
||||
ye := y.(error)
|
||||
return errors.Is(xe, ye) || errors.Is(ye, xe)
|
||||
}
|
||||
|
15
vendor/github.com/google/go-cmp/cmp/cmpopts/errors_go113.go
generated
vendored
15
vendor/github.com/google/go-cmp/cmp/cmpopts/errors_go113.go
generated
vendored
@@ -1,15 +0,0 @@
|
||||
// Copyright 2021, The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build go1.13
|
||||
|
||||
package cmpopts
|
||||
|
||||
import "errors"
|
||||
|
||||
func compareErrors(x, y interface{}) bool {
|
||||
xe := x.(error)
|
||||
ye := y.(error)
|
||||
return errors.Is(xe, ye) || errors.Is(ye, xe)
|
||||
}
|
18
vendor/github.com/google/go-cmp/cmp/cmpopts/errors_xerrors.go
generated
vendored
18
vendor/github.com/google/go-cmp/cmp/cmpopts/errors_xerrors.go
generated
vendored
@@ -1,18 +0,0 @@
|
||||
// Copyright 2021, The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build !go1.13
|
||||
|
||||
// TODO(≥go1.13): For support on <go1.13, we use the xerrors package.
|
||||
// Drop this file when we no longer support older Go versions.
|
||||
|
||||
package cmpopts
|
||||
|
||||
import "golang.org/x/xerrors"
|
||||
|
||||
func compareErrors(x, y interface{}) bool {
|
||||
xe := x.(error)
|
||||
ye := y.(error)
|
||||
return xerrors.Is(xe, ye) || xerrors.Is(ye, xe)
|
||||
}
|
Reference in New Issue
Block a user