mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-10-19 05:39:51 +00:00
8b96180161
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.1 to 1.7.2. - [Release notes](https://github.com/stretchr/testify/releases) - [Commits](https://github.com/stretchr/testify/compare/v1.7.1...v1.7.2) --- updated-dependencies: - dependency-name: github.com/stretchr/testify dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
17 lines
403 B
Go
17 lines
403 B
Go
//go:build go1.17
|
|
// +build go1.17
|
|
|
|
// TODO: once support for Go 1.16 is dropped, this file can be
|
|
// merged/removed with assertion_compare_go1.17_test.go and
|
|
// assertion_compare_legacy.go
|
|
|
|
package assert
|
|
|
|
import "reflect"
|
|
|
|
// Wrapper around reflect.Value.CanConvert, for compatibility
|
|
// reasons.
|
|
func canConvert(value reflect.Value, to reflect.Type) bool {
|
|
return value.CanConvert(to)
|
|
}
|