aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/tests
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax/tests')
-rw-r--r--crates/ra_syntax/tests/test.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/ra_syntax/tests/test.rs b/crates/ra_syntax/tests/test.rs
index a07855768..7f385f86f 100644
--- a/crates/ra_syntax/tests/test.rs
+++ b/crates/ra_syntax/tests/test.rs
@@ -43,6 +43,7 @@ fn parser_fuzz_tests() {
43fn self_hosting_parsing() { 43fn self_hosting_parsing() {
44 let empty_vec = vec![]; 44 let empty_vec = vec![];
45 let dir = project_dir(); 45 let dir = project_dir();
46 let mut count = 0u32;
46 for entry in walkdir::WalkDir::new(dir) 47 for entry in walkdir::WalkDir::new(dir)
47 .into_iter() 48 .into_iter()
48 .filter_entry(|entry| { 49 .filter_entry(|entry| {
@@ -63,6 +64,7 @@ fn self_hosting_parsing() {
63 !entry.path().is_dir() && (entry.path().extension() == Some(std::ffi::OsStr::new("rs"))) 64 !entry.path().is_dir() && (entry.path().extension() == Some(std::ffi::OsStr::new("rs")))
64 }) 65 })
65 { 66 {
67 count += 1;
66 let text = read_text(entry.path()); 68 let text = read_text(entry.path());
67 let node = SourceFileNode::parse(&text); 69 let node = SourceFileNode::parse(&text);
68 let errors = node.errors(); 70 let errors = node.errors();
@@ -72,6 +74,7 @@ fn self_hosting_parsing() {
72 entry 74 entry
73 ); 75 );
74 } 76 }
77 panic!("{}", count)
75} 78}
76/// Read file and normalize newlines. 79/// Read file and normalize newlines.
77/// 80///