(t *testing.T)
| 247 | } |
| 248 | |
| 249 | func TestSplitConcurrentPoolUse(t *testing.T) { |
| 250 | re := MustCompile(`(needle)`) |
| 251 | input := "éneedle界needle😀" |
| 252 | want := []string{"é", "needle", "界", "needle", "😀"} |
| 253 | for i := 0; i < 8; i++ { |
| 254 | t.Run(fmt.Sprint(i), func(t *testing.T) { |
| 255 | t.Parallel() |
| 256 | for j := 0; j < 50; j++ { |
| 257 | got, err := re.Split(input, -1) |
| 258 | if err != nil || !slices.Equal(got, want) { |
| 259 | t.Fatal(got, err) |
| 260 | } |
| 261 | } |
| 262 | }) |
| 263 | } |
| 264 | } |
nothing calls this directly
no test coverage detected