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

Function TestBytesArrayScanEmpty

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

Source from the content-addressed store, hash-verified

351}
352
353func TestBytesArrayScanEmpty(t *testing.T) {
354 var arr BytesArray
355 err := arr.Scan(`{}`)
356
357 if err != nil {
358 t.Fatalf("Expected no error, got %v", err)
359 }
360 if arr == nil || len(arr) != 0 {
361 t.Errorf("Expected empty, got %#v", arr)
362 }
363}
364
365func TestBytesArrayScanNil(t *testing.T) {
366 arr := BytesArray{{2}, {6}, {0, 0}}

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…