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

Function TestGenericArrayScanScannerSliceEmpty

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

Source from the content-addressed store, hash-verified

1011}
1012
1013func TestGenericArrayScanScannerSliceEmpty(t *testing.T) {
1014 var nss []sql.NullString
1015
1016 if err := (GenericArray{&nss}).Scan(`{}`); err != nil {
1017 t.Fatalf("Expected no error, got %v", err)
1018 }
1019 if nss == nil || len(nss) != 0 {
1020 t.Errorf("Expected empty, got %#v", nss)
1021 }
1022}
1023
1024func TestGenericArrayScanScannerSliceNil(t *testing.T) {
1025 nss := []sql.NullString{{String: ``, Valid: true}, {}}

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…