| 1 | //go:build re2_test_exhaustive |
| 2 | |
| 3 | package re2 |
| 4 | |
| 5 | import ( |
| 6 | _ "embed" |
| 7 | "testing" |
| 8 | ) |
| 9 | |
| 10 | // GAP: This test is excluded by default unlike the stdlib. |
| 11 | // This test compiles millions of regular expressions, and re2's low compilation |
| 12 | // performance makes it take a prohibitive amount of time even without the race |
| 13 | // detector as the stdlib guards on. |
| 14 | func TestRE2Exhaustive(t *testing.T) { |
| 15 | testRE2(t, "testdata/re2-exhaustive.txt.bz2") |
| 16 | } |