From bc346a69c43961e1478ed3acfd80c24d566394bf Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Mon, 1 Jan 2024 20:23:56 -0500 Subject: Add migration tests --- .../stretchr/testify/assert/assertion_compare_legacy.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 vendor/github.com/stretchr/testify/assert/assertion_compare_legacy.go (limited to 'vendor/github.com/stretchr/testify/assert/assertion_compare_legacy.go') diff --git a/vendor/github.com/stretchr/testify/assert/assertion_compare_legacy.go b/vendor/github.com/stretchr/testify/assert/assertion_compare_legacy.go new file mode 100644 index 0000000..1701af2 --- /dev/null +++ b/vendor/github.com/stretchr/testify/assert/assertion_compare_legacy.go @@ -0,0 +1,16 @@ +//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 +} -- cgit v1.2.3