(t *testing.T)
| 405 | } |
| 406 | |
| 407 | func TestStdlibCompat_FindAllIndex(t *testing.T) { |
| 408 | for _, test := range findTests { |
| 409 | t.Run(test.String(), func(t *testing.T) { |
| 410 | stdRe := regexp.MustCompile(test.pat) |
| 411 | cgRe := MustCompile(test.pat) |
| 412 | |
| 413 | stdResult := stdRe.FindAllStringIndex(test.text, -1) |
| 414 | cgResult := cgRe.FindAllStringIndex(test.text, -1) |
| 415 | |
| 416 | if !reflect.DeepEqual(stdResult, cgResult) { |
| 417 | t.Errorf("FindAllStringIndex(%q, %q):\n stdlib: %v\n coregex: %v", |
| 418 | test.pat, test.text, stdResult, cgResult) |
| 419 | } |
| 420 | }) |
| 421 | } |
| 422 | } |
| 423 | |
| 424 | func TestStdlibCompat_FindAllStringIndex(t *testing.T) { |
| 425 | for _, test := range findTests { |
nothing calls this directly
no test coverage detected