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

Function TestStringArrayScanString

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

Source from the content-addressed store, hash-verified

874}
875
876func TestStringArrayScanString(t *testing.T) {
877 for _, tt := range StringArrayStringTests {
878 arr := StringArray{"x", "x", "x"}
879 err := arr.Scan(tt.str)
880
881 if err != nil {
882 t.Fatalf("Expected no error for %q, got %v", tt.str, err)
883 }
884 if !reflect.DeepEqual(arr, tt.arr) {
885 t.Errorf("Expected %+v for %q, got %+v", tt.arr, tt.str, arr)
886 }
887 }
888}
889
890func TestStringArrayScanError(t *testing.T) {
891 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…