mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-05-16 19:42:40 +00:00
0245c606d7
* use 'test' value for testrig storage backend * update test dependency * add WaitFor func in testrig * use WaitFor function instead of time.Sleep * tidy up tests * make SentMessages a sync.map * go fmt
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)
|
|
}
|