MCPcopy Create free account
hub / github.com/aarondl/sqlboiler / TestBytesArrayScanNil

Function TestBytesArrayScanNil

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

Source from the content-addressed store, hash-verified

363}
364
365func TestBytesArrayScanNil(t *testing.T) {
366 arr := BytesArray{{2}, {6}, {0, 0}}
367 err := arr.Scan(nil)
368
369 if err != nil {
370 t.Fatalf("Expected no error, got %v", err)
371 }
372 if arr != nil {
373 t.Errorf("Expected nil, got %+v", arr)
374 }
375}
376
377var BytesArrayStringTests = []struct {
378 str string

Callers

nothing calls this directly

Calls 1

ScanMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…