(t *testing.T)
| 1059 | } |
| 1060 | |
| 1061 | func TestGenericArrayScanScannerSliceString(t *testing.T) { |
| 1062 | src, expected, nss := `{NULL,"\"",xyz}`, |
| 1063 | []sql.NullString{{}, {String: `"`, Valid: true}, {String: `xyz`, Valid: true}}, |
| 1064 | []sql.NullString{{String: ``, Valid: true}, {}, {}} |
| 1065 | |
| 1066 | if err := (GenericArray{&nss}).Scan(src); err != nil { |
| 1067 | t.Fatalf("Expected no error, got %v", err) |
| 1068 | } |
| 1069 | if !reflect.DeepEqual(nss, expected) { |
| 1070 | t.Errorf("Expected %v, got %v", expected, nss) |
| 1071 | } |
| 1072 | } |
| 1073 | |
| 1074 | type TildeNullInt64 struct{ sql.NullInt64 } |
| 1075 |
nothing calls this directly
no test coverage detected
searching dependent graphs…