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

Function TestGenericArrayScanScannerSliceNil

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

Source from the content-addressed store, hash-verified

1022}
1023
1024func 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
1035func TestGenericArrayScanScannerSliceBytes(t *testing.T) {
1036 src, expected, nss := []byte(`{NULL,abc,"\""}`),

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…