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

Function TestStringArrayScanUnsupported

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

Source from the content-addressed store, hash-verified

800}
801
802func TestStringArrayScanUnsupported(t *testing.T) {
803 var arr StringArray
804 err := arr.Scan(true)
805
806 if err == nil {
807 t.Fatal("Expected error when scanning from bool")
808 }
809 if !strings.Contains(err.Error(), "bool to StringArray") {
810 t.Errorf("Expected type to be mentioned when scanning, got %q", err)
811 }
812}
813
814func TestStringArrayScanEmpty(t *testing.T) {
815 var arr StringArray

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…