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

Function TestStringArrayScanEmpty

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

Source from the content-addressed store, hash-verified

812}
813
814func TestStringArrayScanEmpty(t *testing.T) {
815 var arr StringArray
816 err := arr.Scan(`{}`)
817
818 if err != nil {
819 t.Fatalf("Expected no error, got %v", err)
820 }
821 if arr == nil || len(arr) != 0 {
822 t.Errorf("Expected empty, got %#v", arr)
823 }
824}
825
826func TestStringArrayScanNil(t *testing.T) {
827 arr := StringArray{"x", "x", "x"}

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…