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

Function TestBytesArrayScanBytes

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

Source from the content-addressed store, hash-verified

385}
386
387func TestBytesArrayScanBytes(t *testing.T) {
388 for _, tt := range BytesArrayStringTests {
389 bytes := []byte(tt.str)
390 arr := BytesArray{{2}, {6}, {0, 0}}
391 err := arr.Scan(bytes)
392
393 if err != nil {
394 t.Fatalf("Expected no error for %q, got %v", bytes, err)
395 }
396 if !reflect.DeepEqual(arr, tt.arr) {
397 t.Errorf("Expected %+v for %q, got %+v", tt.arr, bytes, arr)
398 }
399 }
400}
401
402func BenchmarkBytesArrayScanBytes(b *testing.B) {
403 var a BytesArray

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…