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

Function TestBoolArrayScanEmpty

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

Source from the content-addressed store, hash-verified

195}
196
197func TestBoolArrayScanEmpty(t *testing.T) {
198 var arr BoolArray
199 err := arr.Scan(`{}`)
200
201 if err != nil {
202 t.Fatalf("Expected no error, got %v", err)
203 }
204 if arr == nil || len(arr) != 0 {
205 t.Errorf("Expected empty, got %#v", arr)
206 }
207}
208
209func TestBoolArrayScanNil(t *testing.T) {
210 arr := BoolArray{true, true, true}

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…