MCPcopy
hub / github.com/expr-lang/expr / isNumericType

Function isNumericType

internal/testify/assert/assertions.go:199–201  ·  view source on GitHub ↗

isNumericType returns true if the type is one of: int, int8, int16, int32, int64, uint, uint8, uint16, uint32, uint64, float32, float64, complex64, complex128

(t reflect.Type)

Source from the content-addressed store, hash-verified

197// int, int8, int16, int32, int64, uint, uint8, uint16, uint32, uint64,
198// float32, float64, complex64, complex128
199func isNumericType(t reflect.Type) bool {
200 return t.Kind() >= reflect.Int && t.Kind() <= reflect.Complex128
201}
202
203/* CallerInfo is necessary because the assert functions use the testing object
204internally, causing it to print the file:line of the assert method, rather than where

Callers 1

ObjectsAreEqualValuesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…