vendor/github.com/stretchr/testify/assert/assertion_compare_legacy.go
author Mikael Berthe <mikael@lilotux.net>
Sat, 04 Feb 2023 13:35:58 +0100
changeset 271 c8b8b7cc8896
parent 260 445e01aede7e
permissions -rw-r--r--
Remove deprecated flag (`--unset`)

//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_can_convert.go

package assert

import "reflect"

// Older versions of Go does not have the reflect.Value.CanConvert
// method.
func canConvert(value reflect.Value, to reflect.Type) bool {
	return false
}