(b *testing.B)
| 400 | } |
| 401 | |
| 402 | func BenchmarkBytesArrayScanBytes(b *testing.B) { |
| 403 | var a BytesArray |
| 404 | var x any = []byte(`{"\\xfe","\\xff","\\xdead","\\xbeef","\\xfe","\\xff","\\xdead","\\xbeef","\\xfe","\\xff"}`) |
| 405 | |
| 406 | for i := 0; i < b.N; i++ { |
| 407 | a = BytesArray{} |
| 408 | a.Scan(x) |
| 409 | } |
| 410 | } |
| 411 | |
| 412 | func TestBytesArrayScanString(t *testing.T) { |
| 413 | for _, tt := range BytesArrayStringTests { |
nothing calls this directly
no test coverage detected
searching dependent graphs…