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

Function TestBytesArrayScanUnsupported

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

Source from the content-addressed store, hash-verified

339}
340
341func TestBytesArrayScanUnsupported(t *testing.T) {
342 var arr BytesArray
343 err := arr.Scan(1)
344
345 if err == nil {
346 t.Fatal("Expected error when scanning from int")
347 }
348 if !strings.Contains(err.Error(), "int to BytesArray") {
349 t.Errorf("Expected type to be mentioned when scanning, got %q", err)
350 }
351}
352
353func TestBytesArrayScanEmpty(t *testing.T) {
354 var arr BytesArray

Callers

nothing calls this directly

Calls 2

ScanMethod · 0.95
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…