(vec *vector.Const)
| 172 | } |
| 173 | |
| 174 | func constToNumeric[T numeric](vec *vector.Const) T { |
| 175 | switch id := vec.Type().ID(); { |
| 176 | case super.IsUnsigned(id): |
| 177 | return T(vector.UintValue(vec, 0)) |
| 178 | case super.IsSigned(id): |
| 179 | return T(vector.IntValue(vec, 0)) |
| 180 | default: |
| 181 | return T(vector.FloatValue(vec, 0)) |
| 182 | } |
| 183 | } |
| 184 | |
| 185 | func minString(state string, vec vector.Any) string { |
| 186 | if vec, ok := vec.(*vector.Const); ok { |
nothing calls this directly
no test coverage detected