(t *testing.T)
| 339 | } |
| 340 | |
| 341 | func TestBytesArrayScanUnsupported(t *testing.T) { |
| 342 | var arr BytesArray |
| 343 | err := arr.Scan(1) |
| 344 | |
| 345 | if err == nil { |
| 346 | t.Fatal("Expected error when scanning from int") |
| 347 | } |
| 348 | if !strings.Contains(err.Error(), "int to BytesArray") { |
| 349 | t.Errorf("Expected type to be mentioned when scanning, got %q", err) |
| 350 | } |
| 351 | } |
| 352 | |
| 353 | func TestBytesArrayScanEmpty(t *testing.T) { |
| 354 | var arr BytesArray |