(b *testing.B)
| 1268 | } |
| 1269 | |
| 1270 | func BenchmarkGenericArrayValueByteSlices(b *testing.B) { |
| 1271 | x := make([][]byte, 10) |
| 1272 | for i := 0; i < len(x); i++ { |
| 1273 | x[i] = bytes.Repeat([]byte(`abc"def\ghi`), 5) |
| 1274 | } |
| 1275 | a := GenericArray{x} |
| 1276 | |
| 1277 | for i := 0; i < b.N; i++ { |
| 1278 | a.Value() |
| 1279 | } |
| 1280 | } |
| 1281 | |
| 1282 | func BenchmarkGenericArrayValueStrings(b *testing.B) { |
| 1283 | x := make([]string, 10) |
nothing calls this directly
no test coverage detected
searching dependent graphs…