(t *testing.T)
| 93 | } |
| 94 | |
| 95 | func TestConvertSliceInvalidValue(t *testing.T) { |
| 96 | value := []any{1, "2", 3} |
| 97 | |
| 98 | _, err := Convert[[]int](value) |
| 99 | |
| 100 | assert.Error(t, err) |
| 101 | assert.Contains(t, err.Error(), "Element 1 is not of type int") |
| 102 | } |
| 103 | |
| 104 | func TestConvertSliceInvalidSlice(t *testing.T) { |
| 105 | value := 1 |