MCPcopy Index your code
hub / github.com/aarondl/sqlboiler / TestGenericArrayScanScannerSliceString

Function TestGenericArrayScanScannerSliceString

types/array_test.go:1061–1072  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1059}
1060
1061func 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
1074type TildeNullInt64 struct{ sql.NullInt64 }
1075

Callers

nothing calls this directly

Calls 1

ScanMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…