(t *testing.T)
| 1022 | } |
| 1023 | |
| 1024 | func TestGenericArrayScanScannerSliceNil(t *testing.T) { |
| 1025 | nss := []sql.NullString{{String: ``, Valid: true}, {}} |
| 1026 | |
| 1027 | if err := (GenericArray{&nss}).Scan(nil); err != nil { |
| 1028 | t.Fatalf("Expected no error, got %v", err) |
| 1029 | } |
| 1030 | if nss != nil { |
| 1031 | t.Errorf("Expected nil, got %+v", nss) |
| 1032 | } |
| 1033 | } |
| 1034 | |
| 1035 | func TestGenericArrayScanScannerSliceBytes(t *testing.T) { |
| 1036 | src, expected, nss := []byte(`{NULL,abc,"\""}`), |
nothing calls this directly
no test coverage detected
searching dependent graphs…