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

Function TestStringArrayScanBytes

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

Source from the content-addressed store, hash-verified

846}
847
848func TestStringArrayScanBytes(t *testing.T) {
849 for _, tt := range StringArrayStringTests {
850 bytes := []byte(tt.str)
851 arr := StringArray{"x", "x", "x"}
852 err := arr.Scan(bytes)
853
854 if err != nil {
855 t.Fatalf("Expected no error for %q, got %v", bytes, err)
856 }
857 if !reflect.DeepEqual(arr, tt.arr) {
858 t.Errorf("Expected %+v for %q, got %+v", tt.arr, bytes, arr)
859 }
860 }
861}
862
863func BenchmarkStringArrayScanBytes(b *testing.B) {
864 var a StringArray

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…