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

Function TestBytesArrayScanString

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

Source from the content-addressed store, hash-verified

410}
411
412func TestBytesArrayScanString(t *testing.T) {
413 for _, tt := range BytesArrayStringTests {
414 arr := BytesArray{{2}, {6}, {0, 0}}
415 err := arr.Scan(tt.str)
416
417 if err != nil {
418 t.Fatalf("Expected no error for %q, got %v", tt.str, err)
419 }
420 if !reflect.DeepEqual(arr, tt.arr) {
421 t.Errorf("Expected %+v for %q, got %+v", tt.arr, tt.str, arr)
422 }
423 }
424}
425
426func TestBytesArrayScanError(t *testing.T) {
427 for _, tt := range []struct {

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…