summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2016-10-04 20:22:13 -0400
committerAndrew Gallant <jamslam@gmail.com>2016-10-04 20:28:56 -0400
commit175406df01c704d557715b6f558f1624f9e8aaf9 (patch)
tree83b4edfbf25becc598a4e6aeafece2ed362b931e /tests
parent89811d43d4239053bafef15f9f13acd9e8986bab (diff)
Refactor and test glob sets.
This commit goes a long way toward refactoring glob sets so that the code is easier to maintain going forward. In particular, it makes the literal optimizations that glob sets used a lot more structured and much easier to extend. Tests have also been modified to include glob sets. There's still a bit of polish work left to do before a release. This also fixes the immediate issue where large gitignore files were causing ripgrep to slow way down. While we don't technically fix it for good, we're a lot better about reducing the number of regexes we compile. In particular, if a gitignore file contains thousands of patterns that can't be matched more simply using literals, then ripgrep will slow down again. We could fix this for good by avoiding RegexSet if the number of regexes grows too large. Fixes #134.
Diffstat (limited to 'tests')
-rw-r--r--tests/tests.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/tests.rs b/tests/tests.rs
index 62fc55a0..d27db8ce 100644
--- a/tests/tests.rs
+++ b/tests/tests.rs
@@ -659,7 +659,6 @@ clean!(regression_30, "test", ".", |wd: WorkDir, mut cmd: Command| {
}
wd.create_dir("vendor");
wd.create("vendor/manifest", "test");
- cmd.arg("--debug");
let lines: String = wd.stdout(&mut cmd);
let expected = path("vendor/manifest:test\n");