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

Function TestBoolArrayScanBytes

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

Source from the content-addressed store, hash-verified

231}
232
233func TestBoolArrayScanBytes(t *testing.T) {
234 for _, tt := range BoolArrayStringTests {
235 bytes := []byte(tt.str)
236 arr := BoolArray{true, true, true}
237 err := arr.Scan(bytes)
238
239 if err != nil {
240 t.Fatalf("Expected no error for %q, got %v", bytes, err)
241 }
242 if !reflect.DeepEqual(arr, tt.arr) {
243 t.Errorf("Expected %+v for %q, got %+v", tt.arr, bytes, arr)
244 }
245 }
246}
247
248func BenchmarkBoolArrayScanBytes(b *testing.B) {
249 var a BoolArray

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…